odoo_mqtt/iot_bridge/core
matthias.lotz bad1d5d528 fix(runtime): restore MQTT reconnect reliability and persist API config state
- Recreate MQTT client on reconnect to apply broker/auth/TLS changes reliably
- Restart loop on new MQTT client instance after reconnect
- Track loop lifecycle to avoid stale client state
- Include MQTT section in initial ConfigServer current_config state
- Keep /config response consistent with persisted /data/config-active.yaml after restart

Result:
- Broker switches via Odoo push now connect reliably (including TLS/non-TLS changes)
- Bridge startup + persisted config reload now exposes mqtt data correctly via GET /config
- Event flow MQTT -> Bridge -> Odoo remains stable after container restarts
2026-02-18 23:10:12 +01:00
..
__init__.py refactor(phase2.2): Refactor main.py - Extract bootstrap and service_manager 2026-02-18 22:43:00 +01:00
bootstrap.py refactor(phase2.3): Migrate to Pydantic V2 and modernize config management 2026-02-18 22:53:36 +01:00
device_manager.py chore: Apply code quality tools (black, isort, ruff) 2026-02-18 22:20:25 +01:00
event_queue.py chore: Apply code quality tools (black, isort, ruff) 2026-02-18 22:20:25 +01:00
service_manager.py fix(runtime): restore MQTT reconnect reliability and persist API config state 2026-02-18 23:10:12 +01:00
session_detector.py chore: Apply code quality tools (black, isort, ruff) 2026-02-18 22:20:25 +01:00