Added HttpInterface
This commit is contained in:
1 parent
cfc6708283
commit
361a935591
6 files changed
+117
-22
No files matched your search
@@ -38,6 +38,10 @@ class StateMachine:
|
||||
|
||||
return self.states[category]
|
||||
|
||||
def get_states(self):
|
||||
for category in sorted(self.states.keys()):
|
||||
yield category, self.states[category].state, self.states[category].last_changed
|
||||
|
||||
|
||||
def track_state_change(eventBus, category, fromState, toState, action):
|
||||
fromState = ensure_list(fromState)
|
||||
|
||||
Reference in new issue
Block a user