Fix devices not always reporting IP - bump aiounifi to v62 (#100149)

pull/100223/head
Robert Svensson 2023-09-11 21:50:29 +02:00 committed by Paulus Schoutsen
parent 04549925c2
commit 5068846fc9
4 changed files with 5 additions and 5 deletions

View File

@ -139,7 +139,7 @@ class UnifiEntityTrackerDescriptionMixin(Generic[HandlerT, ApiItemT]):
"""Device tracker local functions."""
heartbeat_timedelta_fn: Callable[[UniFiController, str], timedelta]
ip_address_fn: Callable[[aiounifi.Controller, str], str]
ip_address_fn: Callable[[aiounifi.Controller, str], str | None]
is_connected_fn: Callable[[UniFiController, str], bool]
hostname_fn: Callable[[aiounifi.Controller, str], str | None]
@ -249,7 +249,7 @@ class UnifiScannerEntity(UnifiEntity[HandlerT, ApiItemT], ScannerEntity):
return self.entity_description.hostname_fn(self.controller.api, self._obj_id)
@property
def ip_address(self) -> str:
def ip_address(self) -> str | None:
"""Return the primary ip address of the device."""
return self.entity_description.ip_address_fn(self.controller.api, self._obj_id)

View File

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

View File

@ -363,7 +363,7 @@ aiosyncthing==0.5.1
aiotractive==0.5.6
# homeassistant.components.unifi
aiounifi==61
aiounifi==62
# homeassistant.components.vlc_telnet
aiovlc==0.1.0

View File

@ -338,7 +338,7 @@ aiosyncthing==0.5.1
aiotractive==0.5.6
# homeassistant.components.unifi
aiounifi==61
aiounifi==62
# homeassistant.components.vlc_telnet
aiovlc==0.1.0