Add Shelly debug logging for async_reconnect_soon (#117945)

This commit is contained in:
Shay Levy
2024-05-23 06:15:15 +03:00
committed by Franck Nijhof
parent ac97f25d6c
commit 09779b5f6e

View File

@@ -256,6 +256,7 @@ class ShellyConfigFlow(ConfigFlow, domain=DOMAIN):
if ( if (
current_entry := await self.async_set_unique_id(mac) current_entry := await self.async_set_unique_id(mac)
) and current_entry.data.get(CONF_HOST) == host: ) and current_entry.data.get(CONF_HOST) == host:
LOGGER.debug("async_reconnect_soon: host: %s, mac: %s", host, mac)
await async_reconnect_soon(self.hass, current_entry) await async_reconnect_soon(self.hass, current_entry)
if host == INTERNAL_WIFI_AP_IP: if host == INTERNAL_WIFI_AP_IP:
# If the device is broadcasting the internal wifi ap ip # If the device is broadcasting the internal wifi ap ip