mirror of
https://github.com/OMGeeky/homecontrol.esp-sensors.git
synced 2026-02-23 15:49:52 +01:00
Merge remote-tracking branch 'origin/jetbrains-junie/issue-2-run-75eae3ea-54e4-40a5-bf5b-51361fd684d8' into jetbrains-junie/issue-2-run-75eae3ea-54e4-40a5-bf5b-51361fd684d8
# Conflicts: # src/esp_sensors/mqtt.py # src/main.py
This commit is contained in:
@@ -204,12 +204,9 @@ def main():
|
||||
print("MQTT client disconnected")
|
||||
except Exception as e:
|
||||
print(f"Error disconnecting MQTT client: {e}")
|
||||
else:
|
||||
print("MQTT client not connected, skipping publish")
|
||||
display.set_status("MQTT not connected")
|
||||
|
||||
# Save the updated reconnection state to the configuration
|
||||
config.save_config()
|
||||
if mqtt_client:
|
||||
# Save the updated reconnection state to the configuration
|
||||
config.save_config()
|
||||
else:
|
||||
print("MQTT is disabled, not publishing data")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user