diff --git a/homeassistant/components/geniushub/__init__.py b/homeassistant/components/geniushub/__init__.py index 32a15285d6c377..964c77794e01f7 100644 --- a/homeassistant/components/geniushub/__init__.py +++ b/homeassistant/components/geniushub/__init__.py @@ -174,7 +174,9 @@ 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 @@ -182,7 +184,7 @@ def __init__(self, hass, client, hub_uid) -> None: self._connect_error = False @property - def hub_uid(self) -> int: + def hub_uid(self) -> str: """Return the Hub UID (MAC address).""" return self._hub_uid if self._hub_uid is not None else self.client.uid