fix bug where momentary switch with activation low does not reset (#16603)
This commit is contained in:
parent
9c1a539f90
commit
8ce2d701c2
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class KonnectedSwitch(ToggleEntity):
|
|||
|
||||
if self._momentary and resp.get(ATTR_STATE) != -1:
|
||||
# Immediately set the state back off for momentary switches
|
||||
self._set_state(self._boolean_state(False))
|
||||
self._set_state(False)
|
||||
|
||||
def turn_off(self, **kwargs):
|
||||
"""Send a command to turn off the switch."""
|
||||
|
|
Loading…
Add table
Reference in a new issue