Bump ical to 6.0.0 (#103482)
parent
1b17f6d837
commit
aa8b36c4e2
|
@ -9,9 +9,9 @@ from typing import Any
|
|||
from ical.calendar import Calendar
|
||||
from ical.calendar_stream import IcsCalendarStream
|
||||
from ical.event import Event
|
||||
from ical.exceptions import CalendarParseError
|
||||
from ical.store import EventStore, EventStoreError
|
||||
from ical.types import Range, Recur
|
||||
from pydantic import ValidationError
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.calendar import (
|
||||
|
@ -178,8 +178,8 @@ def _parse_event(event: dict[str, Any]) -> Event:
|
|||
event[key] = dt_util.as_local(value).replace(tzinfo=None)
|
||||
|
||||
try:
|
||||
return Event.parse_obj(event)
|
||||
except ValidationError as err:
|
||||
return Event(**event)
|
||||
except CalendarParseError as err:
|
||||
_LOGGER.debug("Error parsing event input fields: %s (%s)", event, str(err))
|
||||
raise vol.Invalid("Error parsing event input fields") from err
|
||||
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
"documentation": "https://www.home-assistant.io/integrations/local_calendar",
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["ical"],
|
||||
"requirements": ["ical==5.1.0"]
|
||||
"requirements": ["ical==6.0.0"]
|
||||
}
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/local_todo",
|
||||
"iot_class": "local_polling",
|
||||
"requirements": ["ical==5.1.0"]
|
||||
"requirements": ["ical==6.0.0"]
|
||||
}
|
||||
|
|
|
@ -7,9 +7,9 @@ from typing import Any
|
|||
|
||||
from ical.calendar import Calendar
|
||||
from ical.calendar_stream import IcsCalendarStream
|
||||
from ical.exceptions import CalendarParseError
|
||||
from ical.store import TodoStore
|
||||
from ical.todo import Todo, TodoStatus
|
||||
from pydantic import ValidationError
|
||||
|
||||
from homeassistant.components.todo import (
|
||||
TodoItem,
|
||||
|
@ -74,7 +74,7 @@ def _convert_item(item: TodoItem) -> Todo:
|
|||
"""Convert a HomeAssistant TodoItem to an ical Todo."""
|
||||
try:
|
||||
return Todo(**dataclasses.asdict(item, dict_factory=_todo_dict_factory))
|
||||
except ValidationError as err:
|
||||
except CalendarParseError as err:
|
||||
_LOGGER.debug("Error parsing todo input fields: %s (%s)", item, err)
|
||||
raise HomeAssistantError("Error parsing todo input fields") from err
|
||||
|
||||
|
|
|
@ -1050,7 +1050,7 @@ ibmiotf==0.3.4
|
|||
|
||||
# homeassistant.components.local_calendar
|
||||
# homeassistant.components.local_todo
|
||||
ical==5.1.0
|
||||
ical==6.0.0
|
||||
|
||||
# homeassistant.components.ping
|
||||
icmplib==3.0
|
||||
|
|
|
@ -830,7 +830,7 @@ ibeacon-ble==1.0.1
|
|||
|
||||
# homeassistant.components.local_calendar
|
||||
# homeassistant.components.local_todo
|
||||
ical==5.1.0
|
||||
ical==6.0.0
|
||||
|
||||
# homeassistant.components.ping
|
||||
icmplib==3.0
|
||||
|
|
Loading…
Reference in New Issue