|
|
@@ -194,6 +194,7 @@ async def async_test_connection(config: dict, hass: HomeAssistant):
|
|
|
domain_data = hass.data.get(DOMAIN)
|
|
|
existing = domain_data.get(get_device_id(config)) if domain_data else None
|
|
|
if existing:
|
|
|
+ _LOGGER.info("Pausing existing device to test new connection parameters")
|
|
|
existing["device"].pause()
|
|
|
await asyncio.sleep(5)
|
|
|
|
|
|
@@ -216,6 +217,7 @@ async def async_test_connection(config: dict, hass: HomeAssistant):
|
|
|
retval = None
|
|
|
|
|
|
if existing:
|
|
|
+ _LOGGER.info("Restarting device after test")
|
|
|
existing["device"].resume()
|
|
|
|
|
|
return retval
|