changed time format in logs

This commit is contained in:
John Lancaster
2025-12-02 22:07:20 -06:00
parent 29759692b2
commit 61d5d99dee

View File

@@ -69,15 +69,15 @@ class StagedLight(Hass):
### Transitions
def schedule_transition_checks(self, **kwargs: Any):
def schedule_transition_checks(self, **_):
now = self.get_now()
for stage in self._stages:
dt = self.parse_datetime(stage.start, aware=True, today=True)
if dt > now:
self.log(f'Scehduling transition at: {dt.isoformat()}', level='DEBUG')
self.log(f'Scehduling transition at: {dt.strftime("%I:%M %p")}', level='DEBUG')
self.run_at(self._check_transition, start=dt)
def _check_transition(self, **kwargs: Any):
def _check_transition(self, **_):
self.log('Firing transition event', level='DEBUG')
self.fire_event(
'stage_control',