Skip to content

Commit

Permalink
fix bug where momentary switch with activation low does not reset
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisisnate committed Sep 13, 2018
1 parent d076251 commit 00d9aba
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 00d9aba

Please sign in to comment.