Bump aiounifi to v69 to improve websocket logging (#108265)
This commit is contained in:
parent
867caab70a
commit
274d501bca
4 changed files with 8 additions and 4 deletions
|
@ -7,6 +7,7 @@ import ssl
|
|||
from types import MappingProxyType
|
||||
from typing import Any, Literal
|
||||
|
||||
import aiohttp
|
||||
from aiohttp import CookieJar
|
||||
import aiounifi
|
||||
from aiounifi.interfaces.api_handlers import ItemEvent
|
||||
|
@ -374,7 +375,10 @@ class UniFiController:
|
|||
|
||||
async def _websocket_runner() -> None:
|
||||
"""Start websocket."""
|
||||
await self.api.start_websocket()
|
||||
try:
|
||||
await self.api.start_websocket()
|
||||
except (aiohttp.ClientConnectorError, aiounifi.WebsocketError):
|
||||
LOGGER.error("Websocket disconnected")
|
||||
self.available = False
|
||||
async_dispatcher_send(self.hass, self.signal_reachable)
|
||||
self.hass.loop.call_later(RETRY_TIMER, self.reconnect, True)
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"iot_class": "local_push",
|
||||
"loggers": ["aiounifi"],
|
||||
"quality_scale": "platinum",
|
||||
"requirements": ["aiounifi==68"],
|
||||
"requirements": ["aiounifi==69"],
|
||||
"ssdp": [
|
||||
{
|
||||
"manufacturer": "Ubiquiti Networks",
|
||||
|
|
|
@ -380,7 +380,7 @@ aiosyncthing==0.5.1
|
|||
aiotractive==0.5.6
|
||||
|
||||
# homeassistant.components.unifi
|
||||
aiounifi==68
|
||||
aiounifi==69
|
||||
|
||||
# homeassistant.components.vlc_telnet
|
||||
aiovlc==0.1.0
|
||||
|
|
|
@ -353,7 +353,7 @@ aiosyncthing==0.5.1
|
|||
aiotractive==0.5.6
|
||||
|
||||
# homeassistant.components.unifi
|
||||
aiounifi==68
|
||||
aiounifi==69
|
||||
|
||||
# homeassistant.components.vlc_telnet
|
||||
aiovlc==0.1.0
|
||||
|
|
Loading…
Add table
Reference in a new issue