mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
fix bug where momentary switch with activation low does not reset (#16603)
This commit is contained in:
parent
9c1a539f90
commit
8ce2d701c2
@ -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…
x
Reference in New Issue
Block a user