bug fix from scene detector

This commit is contained in:
John Lancaster
2023-11-25 18:41:49 -06:00
parent 8a5431a72b
commit afc5e45642
2 changed files with 12 additions and 6 deletions

View File

@@ -73,6 +73,7 @@ class Motion(Hass):
cause='motion off'
)
@utils.sync_wrapper
async def callback_light_on(self, entity=None, attribute=None, old=None, new=None, kwargs=None):
"""Called when the light turns on
"""
@@ -81,6 +82,7 @@ class Motion(Hass):
await self.cancel_motion_callback(new='on')
self.listen_motion_off(await self.app.off_duration())
@utils.sync_wrapper
async def callback_light_off(self, entity=None, attribute=None, old=None, new=None, kwargs=None):
"""Called when the light turns off
"""