mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Bump ical to 4.5.1 and set PRODID for home assistant in local calendar ics (#90291)
This commit is contained in:
parent
745df277a0
commit
fa35867765
@ -33,6 +33,8 @@ from .store import LocalCalendarStore
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
PRODID = "-//homeassistant.io//local_calendar 1.0//EN"
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
@ -43,6 +45,7 @@ async def async_setup_entry(
|
|||||||
store = hass.data[DOMAIN][config_entry.entry_id]
|
store = hass.data[DOMAIN][config_entry.entry_id]
|
||||||
ics = await store.async_load()
|
ics = await store.async_load()
|
||||||
calendar = IcsCalendarStream.calendar_from_ics(ics)
|
calendar = IcsCalendarStream.calendar_from_ics(ics)
|
||||||
|
calendar.prodid = PRODID
|
||||||
|
|
||||||
name = config_entry.data[CONF_CALENDAR_NAME]
|
name = config_entry.data[CONF_CALENDAR_NAME]
|
||||||
entity = LocalCalendarEntity(store, calendar, name, unique_id=config_entry.entry_id)
|
entity = LocalCalendarEntity(store, calendar, name, unique_id=config_entry.entry_id)
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/local_calendar",
|
"documentation": "https://www.home-assistant.io/integrations/local_calendar",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["ical"],
|
"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
|
ibmiotf==0.3.4
|
||||||
|
|
||||||
# homeassistant.components.local_calendar
|
# homeassistant.components.local_calendar
|
||||||
ical==4.5.0
|
ical==4.5.1
|
||||||
|
|
||||||
# homeassistant.components.ping
|
# homeassistant.components.ping
|
||||||
icmplib==3.0
|
icmplib==3.0
|
||||||
|
@ -723,7 +723,7 @@ iaqualink==0.5.0
|
|||||||
ibeacon_ble==1.0.1
|
ibeacon_ble==1.0.1
|
||||||
|
|
||||||
# homeassistant.components.local_calendar
|
# homeassistant.components.local_calendar
|
||||||
ical==4.5.0
|
ical==4.5.1
|
||||||
|
|
||||||
# homeassistant.components.ping
|
# homeassistant.components.ping
|
||||||
icmplib==3.0
|
icmplib==3.0
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
dict({
|
dict({
|
||||||
'ics': '''
|
'ics': '''
|
||||||
BEGIN:VCALENDAR
|
BEGIN:VCALENDAR
|
||||||
PRODID:-//github.com/allenporter/ical//4.5.0//EN
|
PRODID:-//homeassistant.io//local_calendar 1.0//EN
|
||||||
VERSION:***
|
VERSION:***
|
||||||
BEGIN:VEVENT
|
BEGIN:VEVENT
|
||||||
DTSTAMP:20230313T190500
|
DTSTAMP:20230313T190500
|
||||||
|
Loading…
x
Reference in New Issue
Block a user