elupus / hass_nibe

Home Assistant Nibe Uplink Integration
183 stars 54 forks source link

cannot import name 'ParameterType' #120

Closed matlimatli closed 2 years ago

matlimatli commented 2 years ago

Suddenly my NIBE integration does not work. I get the following error in the log: 2021-12-12 19:52:04 ERROR (MainThread) [homeassistant.setup] Setup failed for nibe: Unable to import component: cannot import name 'ParameterType' from 'nibeuplink.typing' (/usr/local/lib/python3.9/site-packages/nibeuplink/typing.py)

I also get a similar error by the configuration check in HA, so it doesn't even let me perform restarts.

The problem was present on 2021.11.5, and upgrading to 2021.12.0 did not resolve the issue. The nibe integration is installed via HACS, and has version 1.2.4. I am running HA as a docker container.

matlimatli commented 2 years ago

Nevermind. It seems like one of my own custom integrations, also working on the NIBE system, interfered somehow with this. After disabling that integration, this integration seems to work.