Problem
This package has a dependency aiohttp-client-cache which has a sub-dependency attrs. aiohttp-client-cache in this package is pinned to an old version that caps attrs to < 22.x:
https://github.com/GrandMoff100/HomeAssistantAPI/blob/bd0e7af34564ca26adda07723430b1c07aa4a0aa/pyproject.toml#L20
This unfortunately conflicts with the latest homeassistant package and some other notable packages. (homeassistant currently requires attrs == 23.2.0)
Potential Fix
I was able to unblock myself with this modification, and I imagine nothing breaks as a result of it:
aiohttp-client-cache = ">=0.6.1"
With aiohttp-client-cache 0.11.0 installed, this succeeds:
from homeassistant_api import Client
client = Client(api_url='https://homeassistant.local:8123/api', token=os.environ.get('HA_TOKEN'), use_async=True)
await client.async_get_entities()
Problem
This package has a dependency
aiohttp-client-cachewhich has a sub-dependencyattrs.aiohttp-client-cachein this package is pinned to an old version that capsattrsto< 22.x:https://github.com/GrandMoff100/HomeAssistantAPI/blob/bd0e7af34564ca26adda07723430b1c07aa4a0aa/pyproject.toml#L20
This unfortunately conflicts with the latest
homeassistantpackage and some other notable packages. (homeassistantcurrently requiresattrs == 23.2.0)Potential Fix
I was able to unblock myself with this modification, and I imagine nothing breaks as a result of it:
With aiohttp-client-cache 0.11.0 installed, this succeeds: