open_workshop/open_workshop_mqtt/tests
matthias.lotz 5a27dc6a65 refactor: Remove old service-based MQTT integration
Removed deprecated in-process MQTT service in favor of standalone IoT Bridge container:

Deleted:
- services/ directory (iot_bridge_service, mqtt_client, session_detector, parsers)
- Old tests (test_mqtt_connection, test_mqtt_mocked, test_session_detector, test_topic_matching, test_no_duplicate_messages)

Modified:
- mqtt_connection.py: action_start/stop now show deprecation message
- mqtt_connection.py: Auto-start on Odoo restart disabled
- mqtt_device.py: Auto-subscribe on device changes disabled
- tests/__init__.py: Removed old test imports
- tests/common.py: Replaced with stub (legacy support only)

Reason:
- Old integration ran MQTT client in Odoo process (tight coupling)
- New architecture: Standalone IoT Bridge container + REST API
- Better separation of concerns, scalability, and maintainability
- All functionality moved to iot_bridge/ (Phase 1) + REST API (Phase 2)

All old code is preserved in git history if needed.
Models (mqtt.device, mqtt.session, mqtt.connection, ows.iot.event) remain unchanged.
2026-02-05 16:49:18 +01:00
..
__init__.py refactor: Remove old service-based MQTT integration 2026-02-05 16:49:18 +01:00
common.py refactor: Remove old service-based MQTT integration 2026-02-05 16:49:18 +01:00
test_device_status.py fix: MQTT topic matching + UI button fixes 2026-01-28 22:08:59 +01:00
test_session_detection.py fix: MQTT topic matching + UI button fixes 2026-01-28 22:08:59 +01:00
test_start_stop.py fix: MQTT topic matching + UI button fixes 2026-01-28 22:08:59 +01:00