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