Merge pull request #407 from balloob/testing-upgrade

Fix CI
This commit is contained in:
Paulus Schoutsen committed 2015-09-19 12:55:09 -07:00
commit 8cd1c42e80
8 files changed
+37 -10

No files matched your search

+2 -2
View File
@@ -79,11 +79,11 @@ def if_action(hass, config):
now = dt_util.now()
if before is not None and now > now.replace(hour=before.hour,
minute=before.minute):
return False
return False
if after is not None and now < now.replace(hour=after.hour,
minute=after.minute):
return False
return False
if weekday is not None:
now_weekday = WEEKDAYS[now.weekday()]
+3
View File
@@ -134,6 +134,9 @@ def humanify(events):
if event.event_type == EVENT_STATE_CHANGED:
entity_id = event.data['entity_id']
if entity_id is None:
continue
if entity_id.startswith('sensor.'):
last_sensor_event[entity_id] = event