-
-
Notifications
You must be signed in to change notification settings - Fork 685
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
[Bug]: ICS source fail: 'NoneType' object has no attribute 'calendar_title' #2896
Comments
Hello everyone, Since the update to the latest version (2.3.0), the calendar is no longer working for me either. With version 2.3.0, all entities are no longer available. A rollback to 2.2.0 does restore the entities, but the ICS calendar itself is no longer available. Reloading the calendar in the GUI after downgrade from 2.3.0 to 2.2.0 results in the following error message: 2024-10-22 21:14:36.248 ERROR (SyncWorker_9) [custom_components.waste_collection_schedule.waste_collection_schedule.source_shell] source not found: ics
2024-10-22 21:14:36.250 INFO (MainThread) [homeassistant.components.calendar] Setting up waste_collection_schedule.calendar
2024-10-22 21:14:36.250 ERROR (MainThread) [homeassistant.components.calendar] Error while setting up waste_collection_schedule platform for calendar
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/waste_collection_schedule/calendar.py", line 154, in async_setup_entry
entities = create_calendar_entries([shell], coordinator=coordinator)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/waste_collection_schedule/calendar.py", line 120, in create_calendar_entries
dedicated_calendar_types = shell.get_dedicated_calendar_types()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_dedicated_calendar_types'
2024-10-22 21:14:36.251 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_collection_schedule.sensor
2024-10-22 21:14:36.251 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up waste_collection_schedule platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/waste_collection_schedule/sensor.py", line 76, in async_setup_entry
_LOGGER.debug("Adding sensors for %s", coordinator.shell.calendar_title)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'calendar_title' With version 2.3.0, I received an HTTP 500 error for every calendar activity, along with the error message described above in the log. |
I am also on 2024.10.3, but my problem is still there ... |
seems to be related to #2907 |
Same here |
Same here is not helpful. Did you checked all the different solution threads? If yes and the problem still exists, share more details... Your WCS version, all the HA.-Details, your installed custom components, your WCS configuration... |
The integration has also not been working reliably for a few weeks. Directly after a Home Assistant update, the integration works initially. However, on the next restart, the integration fails to load. The integration is running on version 2.4.0, and Home Assistant on version 2024.11.1. Here is an excerpt from my log:
|
What other custom components do you have installed? I assume you made an update of ics_calendar to version 5.0.4? if yes, check here |
Thank you very much for the helpful tip. Until the first issues with the Waste Collection Schedule, I was using the ics_calendar. It was mentioned in the forum that it can cause problems in combination with the Waste Collection Schedule, so I uninstalled it and hadn’t reinstalled it since. However, I hadn’t thought to connect to the Docker container and run pip uninstall icalendar icalevents there. Doing this has now resolved the issue. Thanks again for pointing me in the right direction |
I Have A Problem With:
The integration in general
What's Your Problem
Integration stopped working after updating to most recent version. Rolling back to previous version did not help. If I try to disable my existing configuration and create a new one, setup fails right after selecting any source of ics type (before I even choose a specific source).
Source (if relevant)
individual google calendar
Logs
Relevant Configuration
Checklist Source Error
Checklist Sensor Error
Required
The text was updated successfully, but these errors were encountered: