Fix UniFi image platform not loading when passphrase is missing from WLAN (#97684)

pull/97772/head
Robert Svensson 2023-08-03 21:11:15 +02:00 committed by Franck Nijhof
parent 12d3bce3a7
commit 694d28ae3b
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
4 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ class UnifiImageEntityDescriptionMixin(Generic[HandlerT, ApiItemT]):
"""Validate and load entities from different UniFi handlers."""
image_fn: Callable[[UniFiController, ApiItemT], bytes]
value_fn: Callable[[ApiItemT], str]
value_fn: Callable[[ApiItemT], str | None]
@dataclass
@ -99,7 +99,7 @@ class UnifiImageEntity(UnifiEntity[HandlerT, ApiItemT], ImageEntity):
_attr_content_type = "image/png"
current_image: bytes | None = None
previous_value = ""
previous_value: str | None = None
def __init__(
self,

View File

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

View File

@ -360,7 +360,7 @@ aiosyncthing==0.5.1
aiotractive==0.5.5
# homeassistant.components.unifi
aiounifi==50
aiounifi==51
# homeassistant.components.vlc_telnet
aiovlc==0.1.0

View File

@ -335,7 +335,7 @@ aiosyncthing==0.5.1
aiotractive==0.5.5
# homeassistant.components.unifi
aiounifi==50
aiounifi==51
# homeassistant.components.vlc_telnet
aiovlc==0.1.0