Handle wired bug on restart (#30276)

This commit is contained in:
Robert Svensson authored and Andrew Sayre committed 2019-12-30 12:40:52 -06:00
1 parent bad35577cb
commit 41d2d1f309
3 files changed
+28 -2

No files matched your search

@@ -59,6 +59,7 @@ async def setup_unifi_integration(
clients_response,
devices_response,
clients_all_response,
known_wireless_clients=None,
):
"""Create the UniFi controller."""
if UNIFI_CONFIG not in hass.data:
@@ -76,6 +77,11 @@ async def setup_unifi_integration(
entry_id=1,
)
if known_wireless_clients:
hass.data[UNIFI_WIRELESS_CLIENTS].update_data(
known_wireless_clients, config_entry
)
mock_client_responses = deque()
mock_client_responses.append(clients_response)