mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Print client error in rest_command (#67900)
This commit is contained in:
parent
c5800d6103
commit
c8351387d7
@ -144,8 +144,12 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
_LOGGER.warning("Timeout call %s", request_url)
|
_LOGGER.warning("Timeout call %s", request_url)
|
||||||
|
|
||||||
except aiohttp.ClientError:
|
except aiohttp.ClientError as err:
|
||||||
_LOGGER.error("Client error %s", request_url)
|
_LOGGER.error(
|
||||||
|
"Client error. Url: %s. Error: %s",
|
||||||
|
request_url,
|
||||||
|
err,
|
||||||
|
)
|
||||||
|
|
||||||
# register services
|
# register services
|
||||||
hass.services.async_register(DOMAIN, name, async_service_handler)
|
hass.services.async_register(DOMAIN, name, async_service_handler)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user