changes for use_dictionary_unpacking
This commit is contained in:
@@ -41,6 +41,7 @@ class MotionCanceller(SceneDetector):
|
||||
|
||||
for handle, info in callbacks.items():
|
||||
if info['entity'] == app.motion.sensor_entity_id and 'new=off' in info['kwargs']:
|
||||
self.cancel_listen_state(handle)
|
||||
await self.AD.state.cancel_state_callback(handle, app.name)
|
||||
self.log(f'Cancelled motion callback for {app.name}')
|
||||
# self.log(json.dumps(info, indent=4))
|
||||
|
||||
Reference in New Issue
Block a user