Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on setup AttributeError: 'str' object has no attribute 'items' #121

Open
filikun opened this issue May 10, 2023 · 0 comments
Open

Comments

@filikun
Copy link

filikun commented May 10, 2023

When trying to setup a Google calendar I get the following error in HA. I use the secret url from the Google calendar as the url. The calendar is shared between me and the family but is not the one auto-generated by Google. I have two other Google calendar´s from the same account and they are working just fine.

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 554, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 784, in async_device_update
    await coro
  File "/config/custom_components/ical/calendar.py", line 74, in async_update
    await self.ical_events.update()
  File "/config/custom_components/ical/__init__.py", line 139, in update
    self.calendar = self._ical_parser(
  File "/config/custom_components/ical/__init__.py", line 172, in _ical_parser
    if "UNTIL" in rrule:
  File "/usr/local/lib/python3.10/site-packages/icalendar/caselessdict.py", line 89, in __eq__
    return self is other or dict(self.items()) == dict(other.items())
AttributeError: 'str' object has no attribute 'items'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant