Added listen_once to eventbus
This commit is contained in:
1 parent
42c7f33567
commit
00c9d22a58
2 files changed
+26
-5
No files matched your search
@@ -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. """
|
||||
|
||||
Reference in new issue
Block a user