M5: default Modbus polling to off (opt-in) to avoid unnecessary DB writes

This commit is contained in:
2026-06-22 20:28:12 +02:00
parent 35cdc7f22a
commit 489cd7df3d
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -42,7 +42,9 @@ class Settings(BaseSettings):
auth_totp_issuer: str = "" # defaults to app_name when empty
# Modbus polling — global kill-switch (CONFIG_FIELDS registered in T08).
modbus_polling_enabled: bool = True
# Off by default: polling is opt-in so a fresh deploy writes no modbus_reading
# rows until the admin explicitly enables it (matches mqtt/discovery defaults).
modbus_polling_enabled: bool = False
# MQTT broker connection (T08 wires into CONFIG_FIELDS/UI; T10 builds the client).
mqtt_enabled: bool = False