Open f-zappa opened 1 month ago
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. After an upgrade to Home Assistant 2024.10.3, the error has disappeared, and the integration, including the entities, can be loaded again. For me, the problem seems to be resolved for now. Maybe this information will help.
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:
Logger: homeassistant.components.sensor
Quelle: helpers/entity_platform.py:365
Integration: Sensor ([Dokumentation](https://www.home-assistant.io/integrations/sensor), [Probleme](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
Erstmals aufgetreten: 12:43:50 (10 Vorkommnisse)
Zuletzt protokolliert: 12:43:50
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 365, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/waste_collection_schedule/sensor.py", line 147, in async_setup_platform
raise ValueError(
ValueError: source_index 0 out of range (0--1) please check your sensor configuration
Logger: custom_components.waste_collection_schedule.waste_collection_schedule.source_shell
Quelle: custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py:226
Integration: Waste Collection Schedule ([Dokumentation](https://github.com/mampfes/hacs_waste_collection_schedule#readme))
Erstmals aufgetreten: 12:43:50 (1 Vorkommnisse)
Zuletzt protokolliert: 12:43:50
error loading source awb_emsland_de: No module named 'icalendar.windows_to_olson' Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 217, in create source_module: SourceModule = importlib.import_module( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 995, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/awb_emsland_de.py", line 7, in <module> from waste_collection_schedule.service.ICS import ICS File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/ICS.py", line 7, in <module> from icalevents import icalevents File "/usr/local/lib/python3.12/site-packages/icalevents/icalevents.py", line 3, in <module> from .icalparser import parse_events, Event File "/usr/local/lib/python3.12/site-packages/icalevents/icalparser.py", line 18, in <module> from icalendar.windows_to_olson import WINDOWS_TO_OLSON ModuleNotFoundError: No module named 'icalendar.windows_to_olson'
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