Skip to content

Commit

Permalink
Update alexa_door_window_announce.py
Browse files Browse the repository at this point in the history
  • Loading branch information
UbhiTS authored Apr 26, 2020
1 parent c02104d commit 4d824c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/alexa_door_window_announce.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def door_window_state_changed(self, entity, attribute, old, new, kwargs):
if new in ["open", "on"]: state = "opened"
if new in ["closed", "off"]: state = "closed"

if datetime.now().time() < self.time_start or self.time_end < datetime.now().time():
if datetime.datetime.now().time() < self.time_start or self.time_end < datetime.datetime.now().time():
self.log(f"DOOR/WINDOW TIME LOG ONLY: {sensor_name.split('.')[1]}|{state}")
return

Expand Down

0 comments on commit 4d824c5

Please sign in to comment.