kirei / hass-chargeamps

Home Assistant Component for Chargeamps
Other
26 stars 8 forks source link

Unable to import component: No module named 'dataclasses_json' on home-assistant/home-assistant:2023.5.3 #37

Closed hfreire closed 1 year ago

hfreire commented 1 year ago

Hi there! Great work with the charge amps integration, really helps me get a better understanding of how my family uses it.

Recently I upgraded from home-assistant:2023.3.6 to home-assistant:2023.5.3 and I am now unable to correctly load the integration. One can see the following error:

` Logger: homeassistant.setup Source: setup.py:214 First occurred: 08:45:05 (1 occurrences) Last logged: 08:45:05

Setup failed for custom integration chargeamps: Unable to import component: No module named 'dataclasses_json' `

hfreire commented 1 year ago

It seems the dataclasses-json might not be available anymore in the official home-assistant Docker image. Added a PR to declare it as a requirement so it gets installed https://github.com/kirei/hass-chargeamps/pull/38.