Skip to content

Commit

Permalink
fix bug where momentary switch with activation low does not reset (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisisnate authored and bachya committed Sep 14, 2018
1 parent 9c1a539 commit 8ce2d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/switch/konnected.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def turn_on(self, **kwargs):

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."""
Expand Down

0 comments on commit 8ce2d70

Please sign in to comment.