Added shutdown event

This commit is contained in:
Paulus Schoutsen committed 2013-11-11 14:58:57 -08:00
1 parent 483546a31d
commit ead057cb04
3 files changed
+21 -5

No files matched your search

+2 -1
View File
@@ -126,7 +126,8 @@ class HTTPInterface(threading.Thread):
self.server.statemachine = statemachine
self.server.api_password = api_password
eventbus.listen_once(ha.EVENT_START, lambda event: self.start())
eventbus.listen_once(ha.EVENT_HOMEASSISTANT_START,
lambda event: self.start())
def run(self):
""" Start the HTTP interface. """