dolezsa / thermal_comfort

Thermal Comfort sensor for HA (absolute humidity, heat index, dew point, thermal perception)
Other
543 stars 106 forks source link

2023.12.0.b2 - Setup failed #331

Closed pailloM closed 6 months ago

pailloM commented 7 months ago

Works fine with 2023.11.3, but fails with beta release. Integration fails to setup with following error message:

Logger: homeassistant.setup Source: setup.py:251 First occurred: 21:59:38 (1 occurrences) Last logged: 21:59:38

` Logger: homeassistant.setup Source: setup.py:251 First occurred: 21:59:38 (1 occurrences) Last logged: 21:59:38

Setup failed for custom integration 'thermal_comfort': Unable to import component: cannot import name 'async_log_exception' from 'homeassistant.config' (/usr/src/homeassistant/homeassistant/config.py) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component component = integration.get_component() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 814, in get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/config/custom_components/thermal_comfort/init.py", line 22, in from .config import OPTIONS_SCHEMA File "/config/custom_components/thermal_comfort/config.py", line 4, in from homeassistant.config import async_log_exception, config_without_domain ImportError: cannot import name 'async_log_exception' from 'homeassistant.config' (/usr/src/homeassistant/homeassistant/config.py) `

rautesamtr commented 7 months ago

Just to note fix is already in master, there will be no release before core has a stable release.

pdsccode commented 7 months ago

Core now has a stable release. I did not see this issue here before updating so now I am w/o Thermal Comfort 😢😆

wizu commented 7 months ago

me too

diogo-madeira commented 7 months ago

I'm with the same problem in 2023.12.0

rautesamtr commented 7 months ago

release is out

edgarmaloverian commented 7 months ago

You are the source of absolute humidity for me, pleeease fix :)

pdsccode commented 7 months ago

release is out

Updated, restarted, works! That's how you do develoment 😆 Awesome, thanks!

pailloM commented 7 months ago

Updated the component restarted and all working with 2023.12.0! Good job! Thanks

ajvandr commented 7 months ago

Same error here on 2023.12.0. "frozen importlib._bootstrap" is the File ref below. GMT+10

Logger: homeassistant.setup Source: setup.py:251 First occurred: 4:07:26 PM (1 occurrences) Last logged: 4:07:26 PM

Setup failed for custom integration 'thermal_comfort': Unable to import component: cannot import name 'async_log_exception' from 'homeassistant.config' (/usr/src/homeassistant/homeassistant/config.py) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component component = integration.get_component() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 814, in get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/config/custom_components/thermal_comfort/init.py", line 22, in from .config import OPTIONS_SCHEMA File "/config/custom_components/thermal_comfort/config.py", line 4, in from homeassistant.config import async_log_exception, config_without_domain ImportError: cannot import name 'async_log_exception' from 'homeassistant.config' (/usr/src/homeassistant/homeassistant/config.py)

rautesamtr commented 7 months ago

@ajvandr have you updated to 2.2.0 yet? There's no config.py anymore in thermal comfort. So either you haven't updated yet or have a broken ugprade.

ajvandr commented 7 months ago

(facepalm) misunderstood the release comment above.

Sorted now thanks @rautesamtr