Handle wired bug on restart (#30276)
This commit is contained in:
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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user