Closed mad-tunes closed 5 months ago
Got the same issue..
Same here
Duplicate of #1869 #1871
Hi, I'm afraid after the 2024.5.2 update and a HA restart I get an
The following integrations and platforms could not be set up: tuya_local Please check your config and logs.
notification. The integration says "Not loaded" so it can't be reloaded to work like before. Sorry about the further hassle!
The logs read:
Logger: homeassistant.setup
Source: setup.py:322
First occurred: 17:03:58 (1 occurrences)
Last logged: 17:03:58
Setup failed for custom integration 'tuya_local': Unable to import component: No module named 'custom_components.tuya_local.helpers.config'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 322, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1001, in async_get_component
self._component_future.result()
File "/usr/src/homeassistant/homeassistant/loader.py", line 981, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1041, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 144, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/config/custom_components/tuya_local/__init__.py", line 27, in <module>
from .device import async_delete_device, get_device_id, setup_device
File "/config/custom_components/tuya_local/device.py", line 28, in <module>
from .helpers.config import get_device_id
ModuleNotFoundError: No module named 'custom_components.tuya_local.helpers.config'
Your installation is corrupted somehow. Reinstall the new tuya-local version.
Thanks. Reinstallation did the trick, all good now with 2024.5.2. Don't know what happened other than me trying to reload.
I have some problem! How to resolve it?
Describe the bug After updating HAs core to 2024.5.0, all devices (x16, of various types) show as unavailable.
To Reproduce Install HA core 2024.5.0 Restart HA All devices in TuyaLocal are unavailable
Expected behavior For TuyaLocal to keep on running as usual
Additional context Rebooting my HA VM leaves them still unavailable. Each comes back as I go down the list of devices and select 3 dots>Reload, but once I restart HA they all show as unavailable again.
If the bug involves a device, then please include device diagnostics from Settings / Devices & Services / Tuya Local (your device) / "1 device"
Please check if there are messages from Tuya Local in the Home
then