Skip to content

Commit

Permalink
Fix devices not always reporting IP - bump aiounifi to v62 (#100149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kane610 authored and balloob committed Sep 12, 2023
1 parent 0454992 commit 5068846
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/unifi/device_tracker.py
Expand Up @@ -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]

Expand Down Expand Up @@ -249,7 +249,7 @@ def hostname(self) -> str | None:
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)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/unifi/manifest.json
Expand Up @@ -8,7 +8,7 @@
"iot_class": "local_push",
"loggers": ["aiounifi"],
"quality_scale": "platinum",
"requirements": ["aiounifi==61"],
"requirements": ["aiounifi==62"],
"ssdp": [
{
"manufacturer": "Ubiquiti Networks",
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Expand Up @@ -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
Expand Down

0 comments on commit 5068846

Please sign in to comment.