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

pull/101547/head
Allen Porter 2023-10-06 00:19:21 -07:00 committed by Franck Nijhof
parent 9725a0daf9
commit d469626855
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
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(