UniFi integration move to push messaging (#31086)
* Rewrite UniFi integration to use push messaging * Add signalling for new clients/devices * Update list of known wireless clients when we get events of them connecting * Reconnection logic for websocket * Fix failing tests * Bump requirement to v12 * Add new tests * Update homeassistant/components/unifi/controller.py Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
1 parent
06c8e53323
commit
958a867c11
14 files changed
+296
-377
No files matched your search
@@ -90,8 +90,8 @@ async def test_sensors(hass):
|
||||
clients[1]["rx_bytes"] = 2345000000
|
||||
clients[1]["tx_bytes"] = 6789000000
|
||||
|
||||
controller.mock_client_responses.append(clients)
|
||||
await controller.async_update()
|
||||
event = {"meta": {"message": "sta:sync"}, "data": clients}
|
||||
controller.api.message_handler(event)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
wireless_client_rx = hass.states.get("sensor.wireless_client_name_rx")
|
||||
|
||||
Reference in new issue
Block a user