Platform error: climate
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/homeassistant/config.py", line 767, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/local/lib/python3.7/dist-packages/homeassistant/loader.py", line 235, in get_platform
"{}.{}".format(self.pkg_path, platform_name)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/xiaomi_miio_airconditioningcompanion/climate.py", line 14, in <module>
from homeassistant.components.climate import ClimateEntity, PLATFORM_SCHEMA
ImportError: cannot import name 'ClimateEntity' from 'homeassistant.components.climate' (/usr/local/lib/python3.7/dist-packages/homeassistant/components/climate/__init__.py)
2020-10-08 22:27:37 ERROR (MainThread) [homeassistant.components.climate] xiaomi_miio_airconditioningcompanion: Error on device update!
Traceback (most recent call last):
File "d:\tools\python\anaconda3\lib\site-packages\homeassistant\helpers\entity_platform.py", line 319, in _async_add_entity
await entity.async_device_update(warning=False)
File "d:\tools\python\anaconda3\lib\site-packages\homeassistant\helpers\entity.py", line 463, in async_device_update
await self.async_update() # type: ignore
File "C:\Users\user\AppData\Roaming\.homeassistant\custom_components\xiaomi_miio_airconditioningcompanion\climate.py", line 321, in async_update
ATTR_SWING_MODE: state.swing_mode.name.lower(),
File "C:\Users\user\AppData\Roaming\.homeassistant\custom_components\xiaomi_miio_airconditioningcompanion\miio\airconditioningcompanionMCN.py", line 97, in swing_mode
return SwingMode(mode)
File "d:\tools\python\anaconda3\lib\enum.py", line 307, in __call__
return cls.__new__(cls, value)
File "d:\tools\python\anaconda3\lib\enum.py", line 555, in __new__
return cls._missing_(value)
File "d:\tools\python\anaconda3\lib\enum.py", line 568, in _missing_
raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 'unsupport' is not a valid SwingMode