mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Fix DSMR reconnecting loop without timeout (#53722)
This commit is contained in:
parent
2d83ad3211
commit
390101720d
@ -165,6 +165,9 @@ async def async_setup_entry(
|
|||||||
LOGGER.exception("Error connecting to DSMR")
|
LOGGER.exception("Error connecting to DSMR")
|
||||||
transport = None
|
transport = None
|
||||||
protocol = None
|
protocol = None
|
||||||
|
|
||||||
|
# throttle reconnect attempts
|
||||||
|
await asyncio.sleep(entry.data[CONF_RECONNECT_INTERVAL])
|
||||||
except CancelledError:
|
except CancelledError:
|
||||||
if stop_listener:
|
if stop_listener:
|
||||||
stop_listener() # pylint: disable=not-callable
|
stop_listener() # pylint: disable=not-callable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user