|
|
@@ -282,6 +282,7 @@ class RoomCalCoordinator(DataUpdateCoordinator[CoordinatorData]):
|
|
|
# Those are re-armed automatically once the override ends and _async_publish()
|
|
|
# calls back into this method with override cleared.
|
|
|
if self._override is not None:
|
|
|
+ _LOGGER.debug("Reschedule skipped: override active, active is parked")
|
|
|
return
|
|
|
|
|
|
now = dt_util.now().replace(tzinfo=None)
|
|
|
@@ -292,6 +293,7 @@ class RoomCalCoordinator(DataUpdateCoordinator[CoordinatorData]):
|
|
|
check_in = datetime.combine(nxt.check_in_date, nxt.check_in_time)
|
|
|
delay = (check_in - now).total_seconds()
|
|
|
if delay > 0:
|
|
|
+ _LOGGER.info("Scheduled update: next::start at=%s guest=%s", check_in, nxt.guest_name)
|
|
|
self._mode_sync_handles.append(
|
|
|
async_call_later(self.hass, delay, self._async_handle_check_in)
|
|
|
)
|
|
|
@@ -301,6 +303,7 @@ class RoomCalCoordinator(DataUpdateCoordinator[CoordinatorData]):
|
|
|
check_out = datetime.combine(active.check_out_date, active.check_out_time)
|
|
|
delay = (check_out - now).total_seconds()
|
|
|
if delay > 0:
|
|
|
+ _LOGGER.info("Scheduled update: current::end at=%s guest=%s", check_out, active.guest_name)
|
|
|
self._mode_sync_handles.append(
|
|
|
async_call_later(self.hass, delay, self._async_handle_check_out)
|
|
|
)
|