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

Error on HA 2024.1.0b0 #19

Closed
TheFes opened this issue Feb 1, 2024 · 2 comments · Fixed by #20
Closed

Error on HA 2024.1.0b0 #19

TheFes opened this issue Feb 1, 2024 · 2 comments · Fixed by #20

Comments

@TheFes
Copy link

TheFes commented Feb 1, 2024

Updating to the new beta causes this issue:

Setup of package 'integrations' at packages/integrations.yaml, line 1 failed: Integration custom_templates caused error: cannot import name 'TRANSLATION_LOAD_LOCK' from 'homeassistant.helpers.translation' (/usr/src/homeassistant/homeassistant/helpers/translation.py)

@Mitch73-2
Copy link

yes i also have this with version :
Core 2024.2.0b1
Supervisor 2024.01.1
Operating System 11.5.rc3
Frontend 20240131.0

`Logger: homeassistant.setup
Source: setup.py:251
First occurred: 17:52:06 (1 occurrences)
Last logged: 17:52:06

Setup failed for custom integration 'custom_templates': Unable to import component: cannot import name 'TRANSLATION_LOAD_LOCK' from 'homeassistant.helpers.translation' (/usr/src/homeassistant/homeassistant/helpers/translation.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 827, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/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 994, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/custom_templates/init.py", line 11, in
from homeassistant.helpers.translation import _TranslationCache, TRANSLATION_FLATTEN_CACHE, TRANSLATION_LOAD_LOCK
ImportError: cannot import name 'TRANSLATION_LOAD_LOCK' from 'homeassistant.helpers.translation' (/usr/src/homeassistant/homeassistant/helpers/translation.py)
`

@PiotrMachowski PiotrMachowski linked a pull request Feb 6, 2024 that will close this issue
@PiotrMachowski
Copy link
Owner

Fixed in v1.3.0

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

Successfully merging a pull request may close this issue.

3 participants