homeassistant-midea-air-appliances-lan icon indicating copy to clipboard operation
homeassistant-midea-air-appliances-lan copied to clipboard

Integration errors after upgrading home assistant to 2024.1.2

Open Game2Freak opened this issue 5 months ago • 41 comments

Version of the custom_component

Latest

Describe the bug

I recently updated home assistant to 2024.1.2 and have had the following errors ever since:

Debug log

Logger: homeassistant.setup
Source: setup.py:403 
First occurred: 20:02:44 (2 occurrences) 
Last logged: 20:02:44

Unable to prepare setup for platform 'midea_dehumidifier.humidifier': Platform not found (Exception importing custom_components.midea_dehumidifier.humidifier).
Unable to prepare setup for platform 'midea_dehumidifier.sensor': Platform not found (Exception importing custom_components.midea_dehumidifier.sensor).
Logger: homeassistant.loader
Source: loader.py:842 
First occurred: 20:02:44 (2 occurrences) 
Last logged: 20:02:44

Unexpected exception importing platform custom_components.midea_dehumidifier.humidifier
Unexpected exception importing platform custom_components.midea_dehumidifier.sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 842, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 859, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 936, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1074, in get_code
  File "<frozen importlib._bootstrap_external>", line 1004, in source_to_code
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/midea_dehumidifier/humidifier.py", line 187
    	self._device_class = HumidifierDeviceClass.DEHUMIDIFIER
    ^
TabError: inconsistent use of tabs and spaces in indentation

Game2Freak avatar Jan 09 '24 22:01 Game2Freak