changes for use_dictionary_unpacking

This commit is contained in:
John Lancaster
2024-08-27 00:42:19 -05:00
parent de31b6ca5a
commit a8e0b53c53
5 changed files with 136 additions and 4 deletions

View File

@@ -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))