Log aiohttp error in rest_command (#118453)

This commit is contained in:
Jan-Philipp Benecke 2024-05-31 04:17:44 +02:00 committed by GitHub
parent 83e77720e9
commit 2b4e9212bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -200,6 +200,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
) from err
except aiohttp.ClientError as err:
_LOGGER.error("Error fetching data: %s", err)
raise HomeAssistantError(
translation_domain=DOMAIN,
translation_key="client_error",