Bump ical to 7.0.3 to fix local-todo persisted with invalid DTSTART values (#113526)

This commit is contained in:
Allen Porter 2024-03-16 15:03:26 -07:00 committed by GitHub
parent ab9b64729a
commit a9da9ee443
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 38 additions and 5 deletions

View file

@ -7,5 +7,5 @@
"documentation": "https://www.home-assistant.io/integrations/calendar.google", "documentation": "https://www.home-assistant.io/integrations/calendar.google",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["googleapiclient"], "loggers": ["googleapiclient"],
"requirements": ["gcal-sync==6.0.3", "oauth2client==4.1.3", "ical==7.0.1"] "requirements": ["gcal-sync==6.0.3", "oauth2client==4.1.3", "ical==7.0.3"]
} }

View file

@ -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==7.0.1"] "requirements": ["ical==7.0.3"]
} }

View file

@ -5,5 +5,5 @@
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/local_todo", "documentation": "https://www.home-assistant.io/integrations/local_todo",
"iot_class": "local_polling", "iot_class": "local_polling",
"requirements": ["ical==7.0.1"] "requirements": ["ical==7.0.3"]
} }

View file

@ -1115,7 +1115,7 @@ ibmiotf==0.3.4
# homeassistant.components.google # homeassistant.components.google
# homeassistant.components.local_calendar # homeassistant.components.local_calendar
# homeassistant.components.local_todo # homeassistant.components.local_todo
ical==7.0.1 ical==7.0.3
# homeassistant.components.ping # homeassistant.components.ping
icmplib==3.0 icmplib==3.0

View file

@ -905,7 +905,7 @@ ibeacon-ble==1.2.0
# homeassistant.components.google # homeassistant.components.google
# homeassistant.components.local_calendar # homeassistant.components.local_calendar
# homeassistant.components.local_todo # homeassistant.components.local_todo
ical==7.0.1 ical==7.0.3
# homeassistant.components.ping # homeassistant.components.ping
icmplib==3.0 icmplib==3.0

View file

@ -22,6 +22,16 @@
list([ list([
]) ])
# --- # ---
# name: test_parse_existing_ics[invalid_dtstart_tzname]
list([
dict({
'due': '2023-10-24T11:30:00',
'status': 'needs_action',
'summary': 'Task',
'uid': '077cb7f2-6c89-11ee-b2a9-0242ac110002',
}),
])
# ---
# name: test_parse_existing_ics[migrate_legacy_due] # name: test_parse_existing_ics[migrate_legacy_due]
list([ list([
dict({ dict({

View file

@ -671,6 +671,28 @@ async def test_move_item_previous_unknown(
), ),
"1", "1",
), ),
(
textwrap.dedent(
"""\
BEGIN:VCALENDAR
PRODID:-//homeassistant.io//local_todo 2.0//EN
VERSION:2.0
BEGIN:VTODO
DTSTAMP:20231024T014011
UID:077cb7f2-6c89-11ee-b2a9-0242ac110002
CREATED:20231017T010348
LAST-MODIFIED:20231024T014011
SEQUENCE:1
STATUS:NEEDS-ACTION
SUMMARY:Task
DUE:20231024T113000
DTSTART;TZID=CST:20231024T113000
END:VTODO
END:VCALENDAR
"""
),
"1",
),
], ],
ids=( ids=(
"empty", "empty",
@ -679,6 +701,7 @@ async def test_move_item_previous_unknown(
"needs_action", "needs_action",
"migrate_legacy_due", "migrate_legacy_due",
"due", "due",
"invalid_dtstart_tzname",
), ),
) )
async def test_parse_existing_ics( async def test_parse_existing_ics(