Skip to content

Pinned dependency for aiohttp-client-cache causes conflicts with homeassistant package #177

@utkashd

Description

@utkashd

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions