Added listen_once to eventbus

This commit is contained in:
Paulus Schoutsen committed 2013-10-24 00:29:33 +01:00
1 parent 42c7f33567
commit 00c9d22a58
2 files changed
+26 -5

No files matched your search

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