Closed chezpaul closed 9 months ago
Hello @chezpaul, I think you have a corrupted source set, since that symbol should not be missing. I did a quick test and it loads correctly with core 2024.2.1 and meross_lan 4.5.3 You should try re-download the component
Completely re downloading the Integration worked. Thanks
Running HA 2024.2.2 and Meross LAN 4.5.3 In my integration page, Meross LAN is always shown as "not loaded" ever since the first 2024 update of HA. I am not using Meross in any ui or automations yet.
This is my log: `Logger: homeassistant.setup Source: setup.py:251 First occurred: February 16, 2024 at 7:41:42 PM (1 occurrences) Last logged: February 16, 2024 at 7:41:42 PM
Setup failed for custom integration 'meross_lan': Unable to import component: Exception importing custom_components.meross_lan Traceback (most recent call last): 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/meross_lan/init.py", line 19, in
from . import const as mlc
File "/config/custom_components/meross_lan/const.py", line 48, in
CONF_TIMESTAMP: Final = mc.KEY_TIMESTAMP
^^^^^^^^^^^^^^^^
AttributeError: module 'custom_components.meross_lan.merossclient.const' has no attribute 'KEY_TIMESTAMP'
The above exception was the direct cause of the following exception:
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 835, in get_component raise ImportError(f"Exception importing {self.pkg_path}") from err ImportError: Exception importing custom_components.meross_lan `