Fix bug in calendar state where alarms due to alarms not scheduled (#101510)
parent
244f6d8002
commit
579590f7c3
|
@ -540,9 +540,9 @@ class CalendarEntity(Entity):
|
|||
|
||||
@callback
|
||||
def update(_: datetime.datetime) -> None:
|
||||
"""Run when the active or upcoming event starts or ends."""
|
||||
"""Update state and reschedule next alarms."""
|
||||
_LOGGER.debug("Running %s update", self.entity_id)
|
||||
self._async_write_ha_state()
|
||||
self.async_write_ha_state()
|
||||
|
||||
if now < event.start_datetime_local:
|
||||
self._alarm_unsubs.append(
|
||||
|
|
Loading…
Reference in New Issue