mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Handle wired bug on restart (#30276)
This commit is contained in:
committed by
Paulus Schoutsen
parent
ae42736235
commit
ce114b81c3
@@ -60,6 +60,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:
|
||||
@@ -77,6 +78,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