Skip to content

Commit

Permalink
Update smarterzones.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaust authored Jul 26, 2021
1 parent 7459516 commit 7f87e23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/smarterzones/smarterzones.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ def switchon(self, zone):
state = self.get_state(zone_switch)
if state != "on":
self.queuedlogger(zone["friendly_name"] + ": zone is opening")
self.call_service("switch/turn_on", zone_switch)
self.call_service("switch/turn_on", entity_id = zone_switch)

def switchoff(self, zone):
zone_switch = zone["zone_switch"]
state = self.get_state(zone_switch)
if state != "of":
if state != "off":
self.queuedlogger(zone["friendly_name"] + ": zone is closing")
self.call_service("switch/turn_off", zone_switch)
self.call_service("switch/turn_off", entity_id = zone_switch)

# Zone Checks
def override_enabled(self, zone):
Expand Down

0 comments on commit 7f87e23

Please sign in to comment.