unixorn / ha-mqtt-discoverable

Python module to create MQTT entities that are automatically discovered by Home Assistant
Apache License 2.0
89 stars 21 forks source link

Type Error when importing Settings[BUG] #170

Open OtterOlli opened 7 months ago

OtterOlli commented 7 months ago

Describe the bug While trying to import the libary an Type Error Exception occurs, claiming argument 'bases' has incorrect type. It seems to be given a tuple while expecting a list.

To Reproduce

  1. pip install
  2. try to import settings from ha_mqtt_discoverable

Expected behavior To import without throwing an Exception

Screenshots mqtt-discovarable screenshot

Gifford47 commented 7 months ago

same here... also installed via pip on python 3.11.7 on armhf with pydantic 1.10.14. it depends on pydantic package, see this issue.

workaround: downgrading back to pydantic 1.10.12