changed time format in logs
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user