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

Problems with calendar #69551

Closed
Friedi1970 opened this issue Apr 7, 2022 · 7 comments
Closed

Problems with calendar #69551

Friedi1970 opened this issue Apr 7, 2022 · 7 comments

Comments

@Friedi1970
Copy link

The problem

I tried to restart after updating to core-2022.4.0 and got an error on restarting. Restart vie command line works, though.

What version of Home Assistant Core has the issue?

core-2022.4.0

What was the last working version of Home Assistant Core?

core-2022.3.8

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Home Assistant WebSocket API

Link to integration documentation on our website

https://www.home-assistant.io/integrations/websocket_api/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.websocket_api.http.connection
Source: components/hassio/__init__.py:674
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:04:45 (1 occurrences)
Last logged: 11:04:45

[546695534528] The system cannot restart because the configuration is not valid: Platform error calendar.icscal - cannot import name 'calculate_offset' from 'homeassistant.components.calendar' (/usr/src/homeassistant/homeassistant/components/calendar/__init__.py)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1634, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1671, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 674, in async_handle_core_service
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error calendar.icscal - cannot import name 'calculate_offset' from 'homeassistant.components.calendar' (/usr/src/homeassistant/homeassistant/components/calendar/__init__.py)

Additional information

No response

@probot-home-assistant
Copy link

websocket_api documentation
websocket_api source
(message by IssueLinks)

@bertreb
Copy link

bertreb commented Apr 7, 2022

This error is due to a core calendar change in 2022.4.0.
I'm using hacs ical-sensor and i'm waiting for a fix/update.

@frenck
Copy link
Member

frenck commented Apr 7, 2022

@Friedi1970 Is this calendar provided by the icscal custom integration?

@Friedi1970
Copy link
Author

@Friedi1970 Is this calendar provided by the icscal custom integration?

I think so. Some minutes ago I got a hint that there is an issue open: tybritten/ical-sensor-homeassistant#83

@frenck
Copy link
Member

frenck commented Apr 7, 2022

@Friedi1970 Try disabling that integration and see if the problem is resolved. If so, than you've been able to at least pinpoint the issue.

@Friedi1970
Copy link
Author

@Friedi1970 Try disabling that integration and see if the problem is resolved. If so, than you've been able to at least pinpoint the issue.

It is icscal.

@frenck
Copy link
Member

frenck commented Apr 7, 2022

It is icscal.

Alright! In that case, I'll go ahead and close up this issue as that is a third-party custom integration.

I wish we could fix it for you, but we can't (as its not part of this project).

Please make sure to report/follow reports with the downstream project 👍

../Frenck

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants