Fix DSMR reconnecting loop without timeout (#53722)
This commit is contained in:
parent
2d83ad3211
commit
390101720d
1 changed files with 3 additions and 0 deletions
|
@ -165,6 +165,9 @@ async def async_setup_entry(
|
|||
LOGGER.exception("Error connecting to DSMR")
|
||||
transport = None
|
||||
protocol = None
|
||||
|
||||
# throttle reconnect attempts
|
||||
await asyncio.sleep(entry.data[CONF_RECONNECT_INTERVAL])
|
||||
except CancelledError:
|
||||
if stop_listener:
|
||||
stop_listener() # pylint: disable=not-callable
|
||||
|
|
Loading…
Add table
Reference in a new issue