mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +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:
|
||||
_LOGGER.warning("Timeout call %s", request_url)
|
||||
|
||||
except aiohttp.ClientError:
|
||||
_LOGGER.error("Client error %s", request_url)
|
||||
except aiohttp.ClientError as err:
|
||||
_LOGGER.error(
|
||||
"Client error. Url: %s. Error: %s",
|
||||
request_url,
|
||||
err,
|
||||
)
|
||||
|
||||
# register services
|
||||
hass.services.async_register(DOMAIN, name, async_service_handler)
|
||||
|
Loading…
x
Reference in New Issue
Block a user