Fix bug in calendar state where alarms due to alarms not scheduled (#101510)

pull/94998/head
Allen Porter 2023-10-06 00:19:21 -07:00 committed by GitHub
parent 244f6d8002
commit 579590f7c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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(