Go to file
matthias.lotz deaa95c650 refactor: Remove legacy PULL config methods (Phase 3.3)
Completes PUSH-only architecture - removes all PULL-based config fetching

REMOVED:
- MockOdooClient.get_config() method (~15 lines)
  - Legacy PULL logic: returned hardcoded device config
  - No longer used after PUSH architecture (Phase 3.1/3.2)

- OdooClient.get_config() method (~27 lines)
  - Legacy PULL logic: GET /ows/iot/config from Odoo
  - No longer used after PUSH architecture (Phase 3.1/3.2)

VERIFIED:
-  No periodic config refresh logic in main.py
-  Bridge loads config-active.yaml at startup only
-  Bridge receives config via POST /config (pushed by Odoo)
-  No GET requests to Odoo for config anymore

KEPT (unchanged):
- odoo_client.send_event() - still used for event pushing
- config_server.py GET /config - returns bridge's current config (debugging)

ARCHITECTURE CLEANUP:
Before: Bridge could PULL config from Odoo (get_config)
After:  Bridge ONLY receives PUSH from Odoo (POST /config)
        - Cleaner separation of concerns
        - No periodic polling overhead
        - Bridge fully autonomous with config-active.yaml

MODIFIED FILES:
- iot_bridge/odoo_client.py                          - ~40 lines removed
- IMPLEMENTATION_PLAN.md                            - Phase 3.3 marked complete

TESTING:
 Bridge still runs without config-active.yaml (waits for push)
 Bridge loads config-active.yaml at startup
 No errors in bridge logs (no missing get_config calls)
 Odoo push still works (Phase 3.2 model hooks)

NEXT STEP:
Phase 3.5 - End-to-End Tests (full PUSH architecture validation)
2026-02-12 20:28:54 +01:00
extra-addons/open_workshop/open_workshop_mqtt feat: Implement Odoo Config-Push System (Phase 3.2) 2026-02-12 20:18:13 +01:00
iot_bridge refactor: Remove legacy PULL config methods (Phase 3.3) 2026-02-12 20:28:54 +01:00
odoo@fd43f0445a initial MQTT Development 2026-02-11 21:07:32 +01:00
python_proto_type added python_proto_type 2026-02-10 20:13:58 +01:00
.gitignore initial version 2026-02-10 20:00:27 +01:00
FEATURE_REQUEST_OPEN_WORKSHOP_MQTT_IoT.md fix: Make IoT Bridge autonomous and fix session closing 2026-02-12 19:28:25 +01:00
IMPLEMENTATION_PLAN.md refactor: Remove legacy PULL config methods (Phase 3.3) 2026-02-12 20:28:54 +01:00