fl4p / batmon-ha

Add-on for Home Assistant to connect JK, JBD, Daly, ANT, SOK and Supervolt BMS via Bluetooth
MIT License
293 stars 55 forks source link

cannot import name 'load_user_config' from partially initialized module #70

Closed mfcakir closed 1 year ago

mfcakir commented 1 year ago

After update i can't start the module Traceback (most recent call last): File "/app/main.py", line 22, in from bmslib.store import load_user_config File "/app/bmslib/store.py", line 7, in from main import logger File "/app/main.py", line 22, in from bmslib.store import load_user_config ImportError: cannot import name 'load_user_config' from partially initialized module 'bmslib.store' (most likely due to a circular import) (/app/bmslib/store.py)

batmon

bjoernh commented 1 year ago

same here, git checkout v0.0.54 and rebuilding the container image fix it. But something is broken on the main branch :)

fl4p commented 1 year ago

Fixed https://github.com/fl4p/batmon-ha/commit/1e3d5117558bc66d6b989e5a73053434e64443da