Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration failing on HA 2025.1 #57

Open
droopanu opened this issue Jan 4, 2025 · 2 comments
Open

Integration failing on HA 2025.1 #57

droopanu opened this issue Jan 4, 2025 · 2 comments

Comments

@droopanu
Copy link

droopanu commented Jan 4, 2025

Logger: homeassistant.setup
Source: setup.py:334
First occurred: 10:05:03 PM (1 occurrences)
Last logged: 10:05:03 PM

Setup failed for custom integration 'goldair_climate': Unable to import component: cannot import name 'TEMP_CELSIUS' from 'homeassistant.const' (/srv/homeassistant/lib/python3.12/site-packages/homeassistant/const.py)
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/loader.py", line 1015, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/loader.py", line 1075, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/goldair_climate/init.py", line 32, in
from .device import GoldairTuyaDevice
File "/home/homeassistant/.homeassistant/custom_components/goldair_climate/device.py", line 10, in
from homeassistant.const import TEMP_CELSIUS
ImportError: cannot import name 'TEMP_CELSIUS' from 'homeassistant.const' (/srv/homeassistant/lib/python3.12/site-packages/homeassistant/const.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/setup.py", line 334, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/loader.py", line 1035, in async_get_component
self._component_future.result()
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/loader.py", line 1027, in async_get_component
comp = self._get_component()
^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/loader.py", line 1075, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/goldair_climate/init.py", line 32, in
from .device import GoldairTuyaDevice
File "/home/homeassistant/.homeassistant/custom_components/goldair_climate/device.py", line 10, in
from homeassistant.const import TEMP_CELSIUS
ImportError: cannot import name 'TEMP_CELSIUS' from 'homeassistant.const' (/srv/homeassistant/lib/python3.12/site-packages/homeassistant/const.py)

@make-all
Copy link
Contributor

make-all commented Jan 4, 2025

This integration hasn't been updated in almost 4 years, and HA has spent the last year deprecating things left-right and centre, so the removals after deprecation period are starting to hit old integrations hard. I guess Nicole doesn't have time to keep up with HA, so rude though it might be to promote my own integration here, you could check out make-all/tuya-local, which originally forked out from this integration to support a couple of non-Goldair Tuya based devices like Kogan and Arlec as well.

@droopanu
Copy link
Author

droopanu commented Jan 5, 2025

Thank you.
Been struggling a bit with local-tuya. Your integration makes it so much easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants