Bump aiounifi to v69 to improve websocket logging (#108265)

This commit is contained in:
Robert Svensson 2024-01-18 03:33:31 +01:00 committed by GitHub
parent 867caab70a
commit 274d501bca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 4 deletions

View file

@ -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)

View file

@ -8,7 +8,7 @@
"iot_class": "local_push",
"loggers": ["aiounifi"],
"quality_scale": "platinum",
"requirements": ["aiounifi==68"],
"requirements": ["aiounifi==69"],
"ssdp": [
{
"manufacturer": "Ubiquiti Networks",

View file

@ -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

View file

@ -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