Fix UniFi image platform not loading when passphrase is missing from WLAN (#97684)
parent
12d3bce3a7
commit
694d28ae3b
|
@ -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,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"iot_class": "local_push",
|
||||
"loggers": ["aiounifi"],
|
||||
"quality_scale": "platinum",
|
||||
"requirements": ["aiounifi==50"],
|
||||
"requirements": ["aiounifi==51"],
|
||||
"ssdp": [
|
||||
{
|
||||
"manufacturer": "Ubiquiti Networks",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue