async fix

This commit is contained in:
John Lancaster
2024-06-12 08:01:30 -05:00
parent 2355aadab7
commit 4014c60148

View File

@@ -33,7 +33,7 @@ class MotionCanceller(SceneDetector):
async def scene_detected(self): async def scene_detected(self):
await super().scene_detected() await super().scene_detected()
app: Motion = await self.get_app(self.args['app']) app: Motion = await self.get_app(self.args['app'])
callbacks = await self.get_callback_entries()[app.name] callbacks = (await self.get_callback_entries())[app.name]
for handle, info in callbacks.items(): for handle, info in callbacks.items():
if info['entity'] == app.sensor.entity_id and 'new=off' in info['kwargs']: if info['entity'] == app.sensor.entity_id and 'new=off' in info['kwargs']: