Skip to content

Commit

Permalink
fix: Fix issue with deleting events using service
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerSelwyn committed Sep 11, 2023
1 parent 882eddf commit d39de03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion custom_components/o365/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,12 @@ def modify_calendar_event(
event.save()
self._raise_event(EVENT_MODIFY_CALENDAR_EVENT, event_id)

def remove_calendar_event(self, event_id, recurrence_id, recurrence_range):
def remove_calendar_event(
self,
event_id,
recurrence_id: str | None = None,
recurrence_range: str | None = None,
):
"""Remove the event."""
if not self._validate_permissions("delete"):
return
Expand Down

0 comments on commit d39de03

Please sign in to comment.