Fix mqtt subscribe debouncer initial delay too long when birth message is disabled (#92188)
Fix mqtt subscribe deboucer initial delay
This commit is contained in:
parent
f8f7de5d5a
commit
cff7829a8d
2 changed files with 16 additions and 0 deletions
|
@ -740,6 +740,9 @@ class MQTT:
|
|||
asyncio.run_coroutine_threadsafe(
|
||||
publish_birth_message(birth_message), self.hass.loop
|
||||
)
|
||||
else:
|
||||
# Update subscribe cooldown period to a shorter time
|
||||
self._subscribe_debouncer.set_timeout(SUBSCRIBE_COOLDOWN)
|
||||
|
||||
async def _async_resubscribe(self) -> None:
|
||||
"""Resubscribe on reconnect."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue