1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 09:38:58 +01:00

Introduce per-source DataUpdateCoordinator for UniFi polling data sources (#166806)

This commit is contained in:
Robert Svensson
2026-03-30 16:48:18 +02:00
committed by GitHub
parent 0a05993a4e
commit 732b170190
6 changed files with 97 additions and 44 deletions
+2 -2
View File
@@ -1223,7 +1223,7 @@ async def test_traffic_rules(
expected_enable_call = deepcopy(traffic_rule)
expected_enable_call["enabled"] = True
assert aioclient_mock.call_count == call_count + 2
assert aioclient_mock.call_count == call_count + 1
assert aioclient_mock.mock_calls[call_count][2] == expected_enable_call
@@ -1277,7 +1277,7 @@ async def test_traffic_routes(
expected_enable_call = deepcopy(traffic_route)
expected_enable_call["enabled"] = True
assert aioclient_mock.call_count == call_count + 2
assert aioclient_mock.call_count == call_count + 1
assert aioclient_mock.mock_calls[call_count][2] == expected_enable_call