Skip to content

Commit

Permalink
Update alexa_doorbell.py
Browse files Browse the repository at this point in the history
  • Loading branch information
UbhiTS authored Apr 26, 2020
1 parent fbe516a commit f741db7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/alexa_doorbell.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from datetime import datetime, time
#
# Alexa Doorbell Controller App
# Developed by @UbhiTS on GitHub
#
# Args:
#alexa_doorbell:
Expand All @@ -26,10 +27,10 @@ def initialize(self):

self.door_motion_sensor = self.args["door"]["motion_sensor"] if "motion_sensor" in self.args["door"] else None
self.home_alexa = self.args["home"]["alexa"] if "alexa" in self.args["home"] else None
self.home_alexa_bell = self.args["home"]["announce_bell"] if "announce_bell" in self.args["home"] else None
self.home_alexa_bell = self.args["home"]["announce_bell"] if "announce_bell" in self.args["home"] else True
self.door_sensor = self.args["door"]["sensor"] if "sensor" in self.args["door"] else None
self.door_alexa = self.args["door"]["alexa"] if "alexa" in self.args["door"] else None
self.door_alexa_bell = self.args["door"]["announce_bell"] if "announce_bell" in self.args["door"] else None
self.door_alexa_bell = self.args["door"]["announce_bell"] if "announce_bell" in self.args["door"] else False
self.home_doorbell = self.args["home"]["doorbell"] if "doorbell" in self.args["home"] else None

if self.door_motion_sensor is None: raise ValueError("door:motion_sensor must be defined")
Expand Down

0 comments on commit f741db7

Please sign in to comment.