cancel off_delay action (#18389)
This commit is contained in:
parent
b8ddbc3fdb
commit
7659c33439
1 changed files with 1 additions and 0 deletions
|
@ -155,6 +155,7 @@ class MqttBinarySensor(MqttAvailability, MqttDiscoveryUpdate,
|
|||
|
||||
if self._delay_listener is not None:
|
||||
self._delay_listener()
|
||||
self._delay_listener = None
|
||||
|
||||
if (self._state and self._off_delay is not None):
|
||||
self._delay_listener = evt.async_call_later(
|
||||
|
|
Loading…
Add table
Reference in a new issue