diff --git a/CHANGELOG_LATEST.md b/CHANGELOG_LATEST.md index 4ce82e569..fb6b985bc 100644 --- a/CHANGELOG_LATEST.md +++ b/CHANGELOG_LATEST.md @@ -9,6 +9,7 @@ For more details go to [emsesp.org](https://emsesp.org/). - user-requested LED blink [#3063](https://github.com/emsesp/EMS-ESP32/issues/3063) - KM300 at address 0x4A [#3084](https://github.com/emsesp/EMS-ESP32/issues/3084) - Commands Service that can be called via MQTT or API or used in the Scheduler Service +- option to disable factory reset [#3150](https://github.com/emsesp/EMS-ESP32/issues/3150) ## Fixed @@ -20,7 +21,7 @@ For more details go to [emsesp.org](https://emsesp.org/). - offset of hpminflowtemp [#3144](https://github.com/emsesp/EMS-ESP32/issues/3144) - water circulation command [#3149](https://github.com/emsesp/EMS-ESP32/pull/3149) - start scheduler after customEntities, delay scheduler loop after startup, handling of `system/restart` command [#3146](https://github.com/emsesp/EMS-ESP32/issues/3146) -- possible memory leaks fixed. +- possible memory leaks fixed - repeated startup schedules compute value - shunting yard show json @@ -33,4 +34,5 @@ For more details go to [emsesp.org](https://emsesp.org/). - Dewtemperature for Easycontrol calculated by ems-esp [#3135](https://github.com/emsesp/EMS-ESP32/issues/3135) - add option for sync thermostat to ntp, allow different time zones [#3148](https://github.com/emsesp/EMS-ESP32/discussions/3148), **defaults to sync**. - block too many GET requests [mentioned in #3104](https://github.com/emsesp/EMS-ESP32/issues/3104) -- Gateway and Connect devices are not shown in the Devices page [3126](https://github.com/emsesp/EMS-ESP32/discussions/3126) +- Gateway and Connect devices are shown in the Devices page, but disabled [3126](https://github.com/emsesp/EMS-ESP32/discussions/3126) + diff --git a/data/pre_load.json b/data/pre_load.json index 616a14864..c7fc82e76 100644 --- a/data/pre_load.json +++ b/data/pre_load.json @@ -134,6 +134,7 @@ "modbus_max_clients": 10, "modbus_timeout": 300, "developer_mode": true, + "disable_reset": false, "email_enabled": true, "email_security": 2, "email_server": "smtp.gmail.com", diff --git a/interface/src/app/main/types.ts b/interface/src/app/main/types.ts index 137078120..1281ee90a 100644 --- a/interface/src/app/main/types.ts +++ b/interface/src/app/main/types.ts @@ -54,6 +54,7 @@ export interface Settings { email_recp: string; email_subject: string; developer_mode: boolean; + disable_reset: boolean; } export enum busConnectionStatus { diff --git a/interface/src/app/settings/ApplicationSettings.tsx b/interface/src/app/settings/ApplicationSettings.tsx index 1ccd06fb8..ddcfadeff 100644 --- a/interface/src/app/settings/ApplicationSettings.tsx +++ b/interface/src/app/settings/ApplicationSettings.tsx @@ -903,6 +903,16 @@ const ApplicationSettings = () => { } label={LL.DEVELOPER_MODE()} /> + + } + label={LL.DISABLE_RESET()} + /> { > {LL.RESTART()} - {data.developer_mode && ( + {!data.disable_reset && (