Adds script component.

A script is composed of a sequence of actions (currently service calls)
that are executed in order.  Individual actions can also be delayed by a
given timedelta.
This commit is contained in:
andythigpen committed 2015-03-14 21:29:55 -05:00
1 parent 948a5c97ec
commit 046efe3acb
10 files changed
+223 -7

No files matched your search

+2
View File
@@ -115,6 +115,7 @@ class HomeAssistant(object):
action(now)
self.bus.listen(EVENT_TIME_CHANGED, point_in_time_listener)
return point_in_time_listener
# pylint: disable=too-many-arguments
def track_time_change(self, action,
@@ -154,6 +155,7 @@ class HomeAssistant(object):
action(event.data[ATTR_NOW])
self.bus.listen(EVENT_TIME_CHANGED, time_listener)
return time_listener
def stop(self):
""" Stops Home Assistant and shuts down all threads. """