bramstroker / homeassistant-powercalc

Custom component to calculate estimated power consumption of lights and other appliances
MIT License
896 stars 250 forks source link

Have had issues for a while now but powercalc wont start #2303

Closed RXM307 closed 1 week ago

RXM307 commented 1 week ago

System Health details

System Information

version core-2024.3.3
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 5.4.0-170-generic
arch x86_64
timezone Australia/Brisbane
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4829 Installed Version | 1.34.0 Stage | running Available Repositories | 1391 Downloaded Repositories | 27
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Dashboards dashboards | 1 -- | -- resources | 10 views | 14 mode | storage
Recorder oldest_recorder_run | May 22, 2024 at 9:31 PM -- | -- current_recorder_run | June 19, 2024 at 9:16 PM estimated_db_size | 828.69 MiB database_engine | mysql database_version | 10.6.17
Sonoff version | 3.7.3 (e240aaf) -- | -- cloud_online | 1 / 1 local_online | 1 / 1

Checklist

Describe the issue

Wont load was working several HA versions ago but have not been able to get it working since

Reproduction steps

  1. Errors on start everytime

Debug logs

2024-06-19 21:16:46.707 WARNING (SyncWorker_6) [homeassistant.loader] We found a custom integration powercalc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-06-19 21:16:49.771 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'powercalc': Unable to import component: cannot import name 'ConfigFlowResult' from 'homeassistant.config_entries' (/usr/src/homeassistant/homeassistant/config_entries.py)
File "/config/custom_components/powercalc/__init__.py", line 89, in <module>
File "/config/custom_components/powercalc/sensor.py", line 141, in <module>
File "/config/custom_components/powercalc/sensors/group.py", line 55, in <module>
from custom_components.powercalc.config_flow import ConfigFlow
File "/config/custom_components/powercalc/config_flow.py", line 13, in <module>

Diagnostics dump or YAML config

powercalc:

bramstroker commented 1 week ago

Please see: https://github.com/bramstroker/homeassistant-powercalc/issues/2222

You should either downgrade powercalc to older version or upgrade HA to 2024.4 or higher.

RXM307 commented 1 week ago

thanks let me try, that I wasn't sure this was the fix as it was auto closed.