Bump ical to 4.5.1 and set PRODID for home assistant in local calendar ics (#90291)
parent
745df277a0
commit
fa35867765
|
@ -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)
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue