Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwiwi authored Mar 25, 2020
1 parent c5ff656 commit 6127739
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tydomMessagehandler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from cover import Cover
from alarm_control_panel import Alarm
# from sensor import Sensor
Expand Down Expand Up @@ -252,7 +251,7 @@ async def parse_response(self, incoming):
if ('alarmState' in attr and attr['alarmState'] == "ON") or ('alarmState' in attr and attr['alarmState']) == "QUIET":
state = "triggered"

elif attr and attr['alarmState'] == "DELAYED":
elif 'alarmState' in attr and attr['alarmState'] == "DELAYED":
state = "pending"

if 'alarmSOS' in attr and attr['alarmSOS'] == "true":
Expand Down

0 comments on commit 6127739

Please sign in to comment.