From c0f2e398c930006438ab6dff953508ecd5bd48e6 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 19 Dec 2025 10:06:40 +0000 Subject: [PATCH] Adjust overrides --- homeassistant/components/tuya/cover.py | 7 +++++-- homeassistant/components/tuya/light.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/tuya/cover.py b/homeassistant/components/tuya/cover.py index 2517e49853e..540da11ff24 100644 --- a/homeassistant/components/tuya/cover.py +++ b/homeassistant/components/tuya/cover.py @@ -11,7 +11,10 @@ from tuya_device_handlers.device_wrapper.common import ( DPCodeEnumWrapper, DPCodeIntegerWrapper, ) -from tuya_device_handlers.type_information import IntegerTypeInformation +from tuya_device_handlers.type_information import ( + EnumTypeInformation, + IntegerTypeInformation, +) from tuya_device_handlers.utils import RemapHelper from tuya_sharing import CustomerDevice, Manager @@ -84,7 +87,7 @@ class _InstructionBooleanWrapper(DPCodeBooleanWrapper): options = ["open", "close"] _ACTION_MAPPINGS = {"open": True, "close": False} - def _convert_value_to_raw_value(self, device: CustomerDevice, value: str) -> bool: + def _convert_value_to_raw_value(self, device: CustomerDevice, value: str) -> bool: # type: ignore[override] return self._ACTION_MAPPINGS[value] diff --git a/homeassistant/components/tuya/light.py b/homeassistant/components/tuya/light.py index 125e3039769..0a9fa5c74bb 100644 --- a/homeassistant/components/tuya/light.py +++ b/homeassistant/components/tuya/light.py @@ -173,7 +173,7 @@ class _ColorDataWrapper(DPCodeJsonWrapper): s_type = DEFAULT_S_TYPE v_type = DEFAULT_V_TYPE - def read_device_status( + def read_device_status( # type: ignore[override] self, device: CustomerDevice ) -> tuple[float, float, float] | None: """Return a tuple (H, S, V) from this color data."""