From ad039b5ffc4ca26bdbfbc735e74be3b3ed25aa57 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 3 Feb 2023 17:10:01 +0100 Subject: [PATCH] Fix geniushub type hint (#87258) --- homeassistant/components/geniushub/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/geniushub/__init__.py b/homeassistant/components/geniushub/__init__.py index 4b460efeea6..bed622eebf6 100644 --- a/homeassistant/components/geniushub/__init__.py +++ b/homeassistant/components/geniushub/__init__.py @@ -174,7 +174,9 @@ def setup_service_functions(hass: HomeAssistant, broker): 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 @@ class GeniusBroker: 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