diff --git a/custom_components/unfoldedcircle/remote.py b/custom_components/unfoldedcircle/remote.py index 1b40e4b..0a6736b 100644 --- a/custom_components/unfoldedcircle/remote.py +++ b/custom_components/unfoldedcircle/remote.py @@ -63,7 +63,9 @@ async def async_update(self) -> None: _LOGGER.exception( "Error retrieving data from UnfoldedCircle device %s", self.name ) - self._attr_activity_list = [a["name"]["en"] for a in activities] + self._available = False + else: + self._attr_activity_list = [a["name"]["en"] for a in activities] async def async_send_command(self, command, **kwargs) -> None: """Send commands to a device."""