thomluther / ha-anker-solix

Home Assistant integration for Anker Solix Power devices
MIT License
296 stars 4 forks source link

Update 1.2.0 not compatible with HA 2024.04.1 #42

Closed FWeinb closed 7 months ago

FWeinb commented 7 months ago

System Health details

System Information

version core-2024.4.1
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 6.1.0-18-amd64
arch x86_64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4817 Installed Version | 1.34.0 Stage | running Available Repositories | 1401 Downloaded Repositories | 19
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Dashboards dashboards | 9 -- | -- resources | 13 views | 24 mode | storage
Recorder oldest_recorder_run | April 21, 2024 at 10:04 -- | -- current_recorder_run | April 28, 2024 at 17:17 estimated_db_size | 151.54 MiB database_engine | sqlite database_version | 3.44.2

Checklist

Describe the issue

Unable to install package aiohttp>=3.9.4: ERROR: Cannot install aiohttp>=3.9.4 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Looks like aiohttp was only updated five days ago to 3.9.4 and released in 2024.04.4. Would be good to update hacs.json to set that as the minimum version.

Reproduction steps

  1. Install 1.2.0 on HA 2024.04.01
  2. Restart
  3. See error log

Debug logs

Not needed

Diagnostics dump

No response

thomluther commented 7 months ago

Yeah, good point, thanks for reporting this issue. aiohttp was just updated recently due to a security issue and I was 'force' to increase the aiohttp version to aiohttp>=3.9.4 I wasn't aware, that this has backwards compatability issues, so will change the min HA release to 2024.04.4 as suggested

thomluther commented 7 months ago

@FWeinb I choose another route to decrease aiohttp>=3.9.3 to let it be compatible with previous HA releases. Can you try re-install 1.2.0 version in your < 2024.04.03 version (which bumped aiohttp to 3.9.4)? It should then work hopefully, without the need to increase min HA version...

FWeinb commented 7 months ago

@thomluther that sounds like the better approach. Already updated to 2024.04.04 so can't test it anymore.

thomluther commented 7 months ago

No problem. I think with the backward aiohttp tolerance there shouldn't be a problem with previous HA releases.