From c6b9a40234c4f621d8159da94eb2c799634b3065 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Sun, 4 May 2025 20:05:33 -0700 Subject: [PATCH] Increase the local calendar update interval to avoid re-parsing the calendar state unnecessarily (#144234) --- homeassistant/components/local_calendar/calendar.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/local_calendar/calendar.py b/homeassistant/components/local_calendar/calendar.py index df6f994a46c..252fe703d6c 100644 --- a/homeassistant/components/local_calendar/calendar.py +++ b/homeassistant/components/local_calendar/calendar.py @@ -36,6 +36,11 @@ _LOGGER = logging.getLogger(__name__) PRODID = "-//homeassistant.io//local_calendar 1.0//EN" +# The calendar on disk is only changed when this entity is updated, so there +# is no need to poll for changes. The calendar enttiy base class will handle +# refreshing the entity state based on the start or end time of the event. +SCAN_INTERVAL = timedelta(days=1) + async def async_setup_entry( hass: HomeAssistant,