Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions homeassistant/components/geniushub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,17 @@ async def set_zone_mode(call: ServiceCall) -> None:
class GeniusBroker:
"""Container for geniushub client and data."""

def __init__(self, hass, client, hub_uid) -> None:
def __init__(
self, hass: HomeAssistant, client: GeniusHub, hub_uid: str | None
) -> None:
"""Initialize the geniushub client."""
self.hass = hass
self.client = client
self._hub_uid = hub_uid
self._connect_error = False

@property
def hub_uid(self) -> int:
def hub_uid(self) -> str:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a MAC address

"""Return the Hub UID (MAC address)."""
return self._hub_uid if self._hub_uid is not None else self.client.uid

Expand Down