fixed kwargs

This commit is contained in:
John Lancaster
2024-10-14 00:48:24 +00:00
parent ea5a9542e1
commit 28f2c4d094

View File

@@ -18,7 +18,7 @@ class SceneDetector(Hass):
) )
self.log(f"Waiting for scene '{self.scene_entity.friendly_name}' to activate") self.log(f"Waiting for scene '{self.scene_entity.friendly_name}' to activate")
async def event_callback(self, event_name, data, cb_args): async def event_callback(self, event_name, data, **kwargs):
entity_id = data['service_data']['entity_id'] entity_id = data['service_data']['entity_id']
if entity_id == self.scene_entity.entity_id: if entity_id == self.scene_entity.entity_id:
await self.scene_detected() await self.scene_detected()