pyscript icon indicating copy to clipboard operation
pyscript copied to clipboard

Calendar create_event missing some attributes like rrule or recurrence_id

Open enr0c opened this issue 8 months ago • 0 comments

The following works perfectly fine:

calendar.birthdays.create_event(
    start_date_time="2025-05-05",
    end_date_time="2025-05-06",
    summary="Event#1",
    description="Lorem",
    location="Ipsum"
)

But this does not work

calendar.birthdays.create_event(
    start_date_time="2025-05-05",
    end_date_time="2025-05-06",
    summary="Event#1",
    description="Lorem",
    location="Ipsum",
    rrule="FREQ=YEARLY"
)

Leads to: Exception in <jupyter_1> line 7: rrule="FREQ=YEARLY" ^ MultipleInvalid: extra keys not allowed @ data['rrule']

Though the calendar entity has such attributes in homeassistant according to the documentation here: https://developers.home-assistant.io/docs/core/entity/calendar/#calendarevent

Can you please check?

Many thanks!

enr0c avatar May 05 '25 09:05 enr0c