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
|
@ -434,7 +434,7 @@ async def test_reconnect_mechanism_exceptions(
|
|||
await setup_unifi_integration(hass, aioclient_mock)
|
||||
|
||||
with patch("aiounifi.Controller.login", side_effect=exception), patch(
|
||||
"homeassistant.components.unifi.hub.UnifiHub.reconnect"
|
||||
"homeassistant.components.unifi.hub.hub.UnifiWebsocket.reconnect"
|
||||
) as mock_reconnect:
|
||||
await websocket_mock.disconnect()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue