From fa35867765cb38a39c0e07c6c34ad771a5dec112 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Sun, 26 Mar 2023 14:00:45 -0700 Subject: [PATCH] Bump ical to 4.5.1 and set PRODID for home assistant in local calendar ics (#90291) --- homeassistant/components/local_calendar/calendar.py | 3 +++ homeassistant/components/local_calendar/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- .../components/local_calendar/snapshots/test_diagnostics.ambr | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/local_calendar/calendar.py b/homeassistant/components/local_calendar/calendar.py index 2905e98caab..718c65ffce2 100644 --- a/homeassistant/components/local_calendar/calendar.py +++ b/homeassistant/components/local_calendar/calendar.py @@ -33,6 +33,8 @@ from .store import LocalCalendarStore _LOGGER = logging.getLogger(__name__) +PRODID = "-//homeassistant.io//local_calendar 1.0//EN" + async def async_setup_entry( hass: HomeAssistant, @@ -43,6 +45,7 @@ async def async_setup_entry( store = hass.data[DOMAIN][config_entry.entry_id] ics = await store.async_load() calendar = IcsCalendarStream.calendar_from_ics(ics) + calendar.prodid = PRODID name = config_entry.data[CONF_CALENDAR_NAME] entity = LocalCalendarEntity(store, calendar, name, unique_id=config_entry.entry_id) diff --git a/homeassistant/components/local_calendar/manifest.json b/homeassistant/components/local_calendar/manifest.json index 42cd7fcf5a9..049f9de03ea 100644 --- a/homeassistant/components/local_calendar/manifest.json +++ b/homeassistant/components/local_calendar/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://www.home-assistant.io/integrations/local_calendar", "iot_class": "local_polling", "loggers": ["ical"], - "requirements": ["ical==4.5.0"] + "requirements": ["ical==4.5.1"] } diff --git a/requirements_all.txt b/requirements_all.txt index 343660ab3de..b7f2f6a181f 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -952,7 +952,7 @@ ibm-watson==5.2.2 ibmiotf==0.3.4 # homeassistant.components.local_calendar -ical==4.5.0 +ical==4.5.1 # homeassistant.components.ping icmplib==3.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 6573d81e550..0c4581d87ec 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -723,7 +723,7 @@ iaqualink==0.5.0 ibeacon_ble==1.0.1 # homeassistant.components.local_calendar -ical==4.5.0 +ical==4.5.1 # homeassistant.components.ping icmplib==3.0 diff --git a/tests/components/local_calendar/snapshots/test_diagnostics.ambr b/tests/components/local_calendar/snapshots/test_diagnostics.ambr index e61b9da7a90..a70b9d7438b 100644 --- a/tests/components/local_calendar/snapshots/test_diagnostics.ambr +++ b/tests/components/local_calendar/snapshots/test_diagnostics.ambr @@ -3,7 +3,7 @@ dict({ 'ics': ''' BEGIN:VCALENDAR - PRODID:-//github.com/allenporter/ical//4.5.0//EN + PRODID:-//homeassistant.io//local_calendar 1.0//EN VERSION:*** BEGIN:VEVENT DTSTAMP:20230313T190500