Added shutdown event
This commit is contained in:
1 parent
483546a31d
commit
ead057cb04
3 files changed
+21
-5
No files matched your search
@@ -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. """
|
||||
|
||||
Reference in new issue
Block a user