Bump ical to 4.5.1 and set PRODID for home assistant in local calendar ics (#90291)

pull/90326/head
Allen Porter 2023-03-26 14:00:45 -07:00 committed by GitHub
parent 745df277a0
commit fa35867765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 4 deletions

View File

@ -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)

View File

@ -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"]
}

View File

@ -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

View File

@ -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

View File

@ -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