Fix devices not always reporting IP - bump aiounifi to v62 (#100149)
parent
04549925c2
commit
5068846fc9
|
@ -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)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"iot_class": "local_push",
|
||||
"loggers": ["aiounifi"],
|
||||
"quality_scale": "platinum",
|
||||
"requirements": ["aiounifi==61"],
|
||||
"requirements": ["aiounifi==62"],
|
||||
"ssdp": [
|
||||
{
|
||||
"manufacturer": "Ubiquiti Networks",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue