Am I the only one experiencing issues with LocaTuya when upgrading to core-2022.4.0?
Logger: homeassistant.setup
Source: setup.py:162
First occurred: 1:25:36 PM (1 occurrences)
Last logged: 1:25:36 PM
Setup failed for custom integration localtuya: Unable to import component: cannot import name 'SPEED_HIGH' from 'homeassistant.components.fan' (/usr/src/homeassistant/homeassistant/components/fan/__init__.py)
and
This error originated from a custom integration.
Logger: aiohttp.server
Source: custom_components/localtuya/fan.py:6
Integration: LocalTuya (documentation, issues)
First occurred: 1:46:50 PM (2 occurrences)
Last logged: 1:48:00 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 94, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 267, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 260, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 335, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/localtuya/config_flow.py", line 407, in async_step_init
return await self.async_step_entity()
File "/config/custom_components/localtuya/config_flow.py", line 438, in async_step_entity
schema = platform_schema(
File "/config/custom_components/localtuya/config_flow.py", line 139, in platform_schema
return vol.Schema(schema).extend(flow_schema(platform, dps_strings))
File "/config/custom_components/localtuya/config_flow.py", line 145, in flow_schema
return import_module("." + platform, integration_module).flow_schema(dps_strings)
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 972, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/config/custom_components/localtuya/__init__.py", line 90, in <module>
CONFIG_SCHEMA = config_schema()
File "/config/custom_components/localtuya/config_flow.py", line 161, in config_schema
entity_schemas = [
File "/config/custom_components/localtuya/config_flow.py", line 162, in <listcomp>
platform_schema(platform, range(1, 256), yaml=True) for platform in PLATFORMS
File "/config/custom_components/localtuya/config_flow.py", line 139, in platform_schema
return vol.Schema(schema).extend(flow_schema(platform, dps_strings))
File "/config/custom_components/localtuya/config_flow.py", line 145, in flow_schema
return import_module("." + platform, integration_module).flow_schema(dps_strings)
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 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/config/custom_components/localtuya/fan.py", line 6, in <module>
from homeassistant.components.fan import (
ImportError: cannot import name 'SPEED_HIGH' from 'homeassistant.components.fan' (/usr/src/homeassistant/homeassistant/components/fan/__init__.py)