Unifi websocket manager (#111041)
* Move hub into .hub.hub * Move websocket to own module * Minor shuffle
This commit is contained in:
parent
d796085923
commit
efc89cd34f
10 changed files with 154 additions and 90 deletions
|
@ -53,7 +53,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
|||
if len(hass.data[UNIFI_DOMAIN]) == 1:
|
||||
async_setup_services(hass)
|
||||
|
||||
hub.start_websocket()
|
||||
hub.websocket.start()
|
||||
|
||||
config_entry.async_on_unload(
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, hub.shutdown)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue