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."""
|
"""Device tracker local functions."""
|
||||||
|
|
||||||
heartbeat_timedelta_fn: Callable[[UniFiController, str], timedelta]
|
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]
|
is_connected_fn: Callable[[UniFiController, str], bool]
|
||||||
hostname_fn: Callable[[aiounifi.Controller, str], str | None]
|
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)
|
return self.entity_description.hostname_fn(self.controller.api, self._obj_id)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ip_address(self) -> str:
|
def ip_address(self) -> str | None:
|
||||||
"""Return the primary ip address of the device."""
|
"""Return the primary ip address of the device."""
|
||||||
return self.entity_description.ip_address_fn(self.controller.api, self._obj_id)
|
return self.entity_description.ip_address_fn(self.controller.api, self._obj_id)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["aiounifi"],
|
"loggers": ["aiounifi"],
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"requirements": ["aiounifi==61"],
|
"requirements": ["aiounifi==62"],
|
||||||
"ssdp": [
|
"ssdp": [
|
||||||
{
|
{
|
||||||
"manufacturer": "Ubiquiti Networks",
|
"manufacturer": "Ubiquiti Networks",
|
||||||
|
|
|
@ -363,7 +363,7 @@ aiosyncthing==0.5.1
|
||||||
aiotractive==0.5.6
|
aiotractive==0.5.6
|
||||||
|
|
||||||
# homeassistant.components.unifi
|
# homeassistant.components.unifi
|
||||||
aiounifi==61
|
aiounifi==62
|
||||||
|
|
||||||
# homeassistant.components.vlc_telnet
|
# homeassistant.components.vlc_telnet
|
||||||
aiovlc==0.1.0
|
aiovlc==0.1.0
|
||||||
|
|
|
@ -338,7 +338,7 @@ aiosyncthing==0.5.1
|
||||||
aiotractive==0.5.6
|
aiotractive==0.5.6
|
||||||
|
|
||||||
# homeassistant.components.unifi
|
# homeassistant.components.unifi
|
||||||
aiounifi==61
|
aiounifi==62
|
||||||
|
|
||||||
# homeassistant.components.vlc_telnet
|
# homeassistant.components.vlc_telnet
|
||||||
aiovlc==0.1.0
|
aiovlc==0.1.0
|
||||||
|
|
Loading…
Reference in New Issue