async fix
This commit is contained in:
@@ -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']:
|
||||||
|
|||||||
Reference in New Issue
Block a user