fix bug where momentary switch with activation low does not reset (#16603)

This commit is contained in:
Nate Clark 2018-09-14 15:31:41 -04:00 committed by Aaron Bach
parent 9c1a539f90
commit 8ce2d701c2

View file

@ -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."""