diff --git a/homeassistant/components/cloud/client.py b/homeassistant/components/cloud/client.py index 631c0641b4f..89fca4a5ea0 100644 --- a/homeassistant/components/cloud/client.py +++ b/homeassistant/components/cloud/client.py @@ -76,7 +76,7 @@ class CloudClient(Interface): return self._hass.http.runner @property - def cloudhooks(self) -> dict[str, dict[str, str]]: + def cloudhooks(self) -> dict[str, dict[str, str | bool]]: """Return list of cloudhooks.""" return self._prefs.cloudhooks @@ -97,8 +97,6 @@ class CloudClient(Interface): if self._alexa_config is not None: return self._alexa_config - assert self.cloud is not None - cloud_user = await self._prefs.get_cloud_user() alexa_conf = alexa_config.CloudAlexaConfig( @@ -120,8 +118,6 @@ class CloudClient(Interface): if self._google_config is not None: return self._google_config - assert self.cloud is not None - cloud_user = await self._prefs.get_cloud_user() google_conf = google_config.CloudGoogleConfig( @@ -270,6 +266,8 @@ class CloudClient(Interface): if payload and (region := payload.get("region")): self._relayer_region = region - async def async_cloudhooks_update(self, data: dict[str, dict[str, str]]) -> None: + async def async_cloudhooks_update( + self, data: dict[str, dict[str, str | bool]] + ) -> None: """Update local list of cloudhooks.""" await self._prefs.async_update(cloudhooks=data)