mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Log unique_id of device when ESPHome connection fails (#44152)
This commit is contained in:
parent
0696724506
commit
dd4147fbaa
@ -257,7 +257,12 @@ async def _setup_auto_reconnect_logic(
|
|||||||
try:
|
try:
|
||||||
await cli.connect(on_stop=try_connect, login=True)
|
await cli.connect(on_stop=try_connect, login=True)
|
||||||
except APIConnectionError as error:
|
except APIConnectionError as error:
|
||||||
_LOGGER.info("Can't connect to ESPHome API for %s: %s", host, error)
|
_LOGGER.info(
|
||||||
|
"Can't connect to ESPHome API for %s (%s): %s",
|
||||||
|
entry.unique_id,
|
||||||
|
host,
|
||||||
|
error,
|
||||||
|
)
|
||||||
# Schedule re-connect in event loop in order not to delay HA
|
# Schedule re-connect in event loop in order not to delay HA
|
||||||
# startup. First connect is scheduled in tracked tasks.
|
# startup. First connect is scheduled in tracked tasks.
|
||||||
data.reconnect_task = hass.loop.create_task(
|
data.reconnect_task = hass.loop.create_task(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user