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",
"iot_class": "cloud_polling",
"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",
"iot_class": "local_polling",
"loggers": ["ical"],
"requirements": ["ical==7.0.1"]
"requirements": ["ical==7.0.3"]
}

View File

@ -5,5 +5,5 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/local_todo",
"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.local_calendar
# homeassistant.components.local_todo
ical==7.0.1
ical==7.0.3
# homeassistant.components.ping
icmplib==3.0

View File

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

View File

@ -22,6 +22,16 @@
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]
list([
dict({

View File

@ -671,6 +671,28 @@ async def test_move_item_previous_unknown(
),
"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=(
"empty",
@ -679,6 +701,7 @@ async def test_move_item_previous_unknown(
"needs_action",
"migrate_legacy_due",
"due",
"invalid_dtstart_tzname",
),
)
async def test_parse_existing_ics(