megakid / ha_hildebrand_glow_ihd_mqtt

Home Assistant integration for local MQTT Hildebrand Glow IHD
98 stars 24 forks source link

Errors in HA log #8

Open metalblue opened 2 years ago

metalblue commented 2 years ago

I keep getting the following errors in my home assistant log.

2022-06-26 17:24:02 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing hildebrand_glow_ihd/diagnostics.py
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
    platform = integration.get_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 618, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 635, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.hildebrand_glow_ihd_mqtt.diagnostics'
2022-06-26 17:24:02 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing hildebrand_glow_ihd/system_health.py
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
    platform = integration.get_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 618, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 635, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.hildebrand_glow_ihd_mqtt.system_health'
2022-06-26 17:24:02 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing hildebrand_glow_ihd/logbook.py
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
    platform = integration.get_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 618, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 635, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.hildebrand_glow_ihd_mqtt.logbook'
2022-06-26 17:24:02 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing hildebrand_glow_ihd/group.py
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
    platform = integration.get_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 618, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 635, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.hildebrand_glow_ihd_mqtt.group'
2022-06-26 17:24:02 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing hildebrand_glow_ihd/energy.py
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 40, in _async_process_single_integration_platform_component
    platform = integration.get_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 618, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 635, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.hildebrand_glow_ihd_mqtt.energy'
megakid commented 2 years ago

What version of HA are you running?

Looks like these shouldnt be errors since it's trying to load optional stuff like diagnostics and system_health

metalblue commented 2 years ago

I'm running HA in docker using the official image. I'm running Home Assistant Core 2022.6.6

metalblue commented 2 years ago

I've just updated to the latest HA (I'm running Home Assistant Core 2022.6.7) and the log entries are still there on startup.

metalblue commented 1 year ago

Just wondering if there were any updates on this?

I'm now running 2022.11.1 and I still get the error messages in the log on startup. The integration appears to function perfectly well so its more of an annoyance than an actual issue.

metalblue commented 1 year ago

This issue occurs when the folder name doesn't match the DOMAIN of the component. By default this component extracts to a folder ha_hildebrand_glow_ihd_mqtt, but the DOMAIN is hildebrand_glow_ihd. This error goes away if the folder is renamed to hildebrand_glow_ihd within the custom_components folder.