moved toggle logic

This commit is contained in:
John Lancaster
2023-12-08 08:22:57 -06:00
parent e0caaedc15
commit cf9f0f3244
3 changed files with 20 additions and 18 deletions

View File

@@ -101,7 +101,7 @@ class Motion(Hass):
async def cancel_motion_callback(self):
callbacks = await self.get_sensor_callbacks()
self.log(f'Found {len(callbacks)} callbacks for {self.sensor.entity_id}')
# self.log(f'Found {len(callbacks)} callbacks for {self.sensor.entity_id}')
for handle, info in callbacks.items():
entity = info["entity"]
kwargs = info['kwargs']