ekutner / home-connect-hass

Alternative (and improved) Home Connect integration for Home Assistant
MIT License
511 stars 53 forks source link

Error occurred loading flow for integration home_connect_alt: No module named 'marshmallow_enum' #219

Closed Nurgus closed 1 year ago

Nurgus commented 1 year ago

Describe the bug

Upon upgrading Home Assistant to 2023.5.0 (via the official docker), Home Connect Alt failed to load. An error message appears in the logs: No module named 'marshmallow_enum'. Prior to this, Home Connect Alt had been working great with my 3 appliances for weeks.

Version of the custom_component

0.6.1

Configuration


home_connect_alt:
  client_id: <>
  client_secret: <>
  sensor_value_translation: server
  language: en-GB

Debug log

2023-05-05 11:28:33.817 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration home_connect_alt: No module named 'marshmallow_enum'
naeramarth7 commented 1 year ago

Had the same issue. In my case, re-installing the integration did the job.

Nurgus commented 1 year ago

re-installing not helped so far. I un-installed and re-installed via HACS but now I can't even add the integration without getting the same error.

Nurgus commented 1 year ago

Solved it.. For some reason upgrading the docker image had lost me the Python module "marshmallow_enum" and all I had to do was "pip install --user marshmallow_enum" inside the docker image. This wouldn't work without a persistent and readable home directory which I had already added to my docker to solve a different problem with another integration .

Weird that a random Python module disappeared when I upgraded Home Assistant that was only used by this one extension.

ekutner commented 1 year ago

Happy to hear that you've found a workaround, but this is not something that the integration is using directly. I assume HA is using it when serializing some configuration data and that it might have been dropped from the latest docker for some reason. I'm using the HA OS and it is still available in the latest release.