|
|
|
|
185
|
self.__time_stamp_state_change__ = timestamp
|
185
|
self.__time_stamp_state_change__ = timestamp
|
186
|
self.__conditions_start_time__ = {}
|
186
|
self.__conditions_start_time__ = {}
|
187
|
# Callback collect
|
187
|
# Callback collect
|
188
|
- this_state_change_callbacks = self.__state_change_callbacks__.get(None, {}).get(None, [])
|
|
|
|
|
188
|
+ this_state_change_callbacks = []
|
|
|
189
|
+ this_state_change_callbacks.extend(self.__state_change_callbacks__.get(None, {}).get(None, []))
|
189
|
this_state_change_callbacks.extend(self.__state_change_callbacks__.get(target_state, {}).get(None, []))
|
190
|
this_state_change_callbacks.extend(self.__state_change_callbacks__.get(target_state, {}).get(None, []))
|
190
|
this_state_change_callbacks.extend(self.__state_change_callbacks__.get(None, {}).get(condition, []))
|
191
|
this_state_change_callbacks.extend(self.__state_change_callbacks__.get(None, {}).get(condition, []))
|
191
|
this_state_change_callbacks.extend(self.__state_change_callbacks__.get(target_state, {}).get(condition, []))
|
192
|
this_state_change_callbacks.extend(self.__state_change_callbacks__.get(target_state, {}).get(condition, []))
|