mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Increase the local calendar update interval to avoid re-parsing the calendar state unnecessarily (#144234)
This commit is contained in:
parent
e0916fdd26
commit
c6b9a40234
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user