Increase the local calendar update interval to avoid re-parsing the calendar state unnecessarily (#144234)

This commit is contained in:
Allen Porter 2025-05-04 20:05:33 -07:00 committed by GitHub
parent e0916fdd26
commit c6b9a40234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,6 +36,11 @@ _LOGGER = logging.getLogger(__name__)
PRODID = "-//homeassistant.io//local_calendar 1.0//EN" 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( async def async_setup_entry(
hass: HomeAssistant, hass: HomeAssistant,