Skip to content

ICS_Calendar unable to setup calendar anymore #194

Description

@tardich

Home Assistant Setup
Please indicate your version of HA and how it is installed.

Version:2024.12.0, installed in Kubernetes from Helm chart

Installation Type (put an X between the square brackets for your HA):
[] Home Assistant OS
[] Home Assistant OS
[] Home Assistant Supervised
[x] Home Assistant Container
[] Home Assistant Core

Hardware platform:
[] ARM
[x] x86-64

Describe the bug
After updating My home-assistant installation, I realized that ics_calendar was no longer working. I uninstalled ics_calendar, restarted home_assistant,then try to reinstall it (ics_calendar). When adding my calendar through the UI mecanism, I get an error at the screen for ics_calendar that says "Failed to set up"

The home-assistant logs are telling me:

2024-12-05 23:30:09.791 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Commun for ics_calendar
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/ics_calendar/__init__.py", line 202, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, ["calendar"])
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2278, in async_forward_entry_setups
    await integration.async_get_platforms(platforms)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1123, in async_get_platforms
    if platform := self._get_platform_cached_or_raise(platform_name):
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1214, in _get_platform_cached_or_raise
    raise ModuleNotFoundError(
    ...<2 lines>...
    )
ModuleNotFoundError: Platform ics_calendar.calendar not found

Used to work for quite a long time without hickups...

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions