ical-sensor-homeassistant icon indicating copy to clipboard operation
ical-sensor-homeassistant copied to clipboard

Error: Cannot import "calculate_offset"

Open joaldes opened this issue 3 years ago • 2 comments

After updating to HA 2022.4.5, I have suddenly received this error. I'm not sure what other information would be useful.

This integration has been working swimmingly before this, so I definitely appreciate that!

Error Message

Logger: homeassistant.setup Source: setup.py:298 First occurred: 11:11:00 AM (1 occurrences) Last logged: 11:11:00 AM

Unable to prepare setup for platform ical.calendar: Platform not found (cannot import name 'calculate_offset' from 'homeassistant.components.calendar' (/usr/src/homeassistant/homeassistant/components/calendar/init.py)).

Here's my system information:

System Health

version core-2022.4.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.9
os_name Linux
os_version 5.10.92-v8
arch aarch64
timezone America/Phoenix
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4825
Installed Version 1.24.5
Stage running
Available Repositories 1031
Downloaded Repositories 30
Home Assistant Cloud
logged_in true
subscription_expiration April 17, 2022, 5:00 PM
relayer_connected true
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
remote_server us-west-2-1.ui.nabu.casa
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.5
update_channel stable
supervisor_version supervisor-2022.04.0
docker_version 20.10.9
disk_total 219.4 GB
disk_used 23.1 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Node-RED (11.1.1), File editor (5.3.3), AdGuard Home (4.5.0), Home Assistant Google Drive Backup (0.104.3), Samba share (9.5.1), SQLite Web (3.3.0), SSH & Web Terminal (10.1.1), Z-Wave JS (0.1.55), Check Home Assistant configuration (3.10.0), Grafana (7.5.2), InfluxDB (4.4.1), Mosquitto broker (6.0.1), Frigate NVR (Full Access) Beta (0.11.0) (0.11.0-beta1), Frigate NVR (Full Access) (3.1), FTP (4.5.0), rtl_433 (0.2.2), rtl_433 MQTT Auto Discovery (0.3.2)
Dashboards
dashboards 5
resources 21
views 18
mode storage

joaldes avatar Apr 18 '22 18:04 joaldes

You need to update to the latest version of this integration.

Olen avatar Apr 19 '22 10:04 Olen

Wow, what a rookie move on my part. How embarrassing. Updating to new version fixed it right up. Thank you!

On a side note, is it possible to change the number of events after it's been set up?

joaldes avatar Apr 19 '22 15:04 joaldes