926 B
926 B
Home Assistant Integration Tests
Tests EU-Utility integration with Home Assistant via multiple protocols.
Test Coverage
1. REST API Tests
- Webhook triggers
- State updates
- Service calls
- Authentication
2. MQTT Tests
- Topic publishing
- QoS levels
- Retained messages
- Connection handling
3. WebSocket Tests
- Real-time events
- State subscriptions
- Service calls
- Connection management
Configuration
REST API
- Home Assistant URL (e.g.,
http://homeassistant.local:8123) - Long-Lived Access Token
MQTT
- Broker address
- Port (default: 1883)
- Authentication (if required)
Compatibility Matrix
| Feature | Windows | Linux | macOS |
|---|---|---|---|
| REST API | ✅ | ✅ | ✅ |
| MQTT | ✅ | ✅ | ✅ |
| WebSocket | ✅ | ✅ | ✅ |
Dependencies
requests- REST API clientpaho-mqtt- MQTT clientwebsocket-client- WebSocket client