Log aiohttp error in rest_command (#118453)

pull/118845/head
Jan-Philipp Benecke 2024-05-31 04:17:44 +02:00 committed by Paulus Schoutsen
parent d93d7159db
commit 008aec5670
1 changed files with 1 additions and 0 deletions

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",