From b4dfe455cbbac78193f2400b4ae9bed5dee7e40e Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 11 Mar 2024 11:54:46 +0100 Subject: [PATCH] Remove entity description mixin in Tuya (#112959) --- homeassistant/components/tuya/climate.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/tuya/climate.py b/homeassistant/components/tuya/climate.py index 3f0626ba82c..3be80193beb 100644 --- a/homeassistant/components/tuya/climate.py +++ b/homeassistant/components/tuya/climate.py @@ -40,20 +40,13 @@ TUYA_HVAC_TO_HA = { } -@dataclass(frozen=True) -class TuyaClimateSensorDescriptionMixin: - """Define an entity description mixin for climate entities.""" +@dataclass(frozen=True, kw_only=True) +class TuyaClimateEntityDescription(ClimateEntityDescription): + """Describe an Tuya climate entity.""" switch_only_hvac_mode: HVACMode -@dataclass(frozen=True) -class TuyaClimateEntityDescription( - ClimateEntityDescription, TuyaClimateSensorDescriptionMixin -): - """Describe an Tuya climate entity.""" - - CLIMATE_DESCRIPTIONS: dict[str, TuyaClimateEntityDescription] = { # Air conditioner # https://developer.tuya.com/en/docs/iot/categorykt?id=Kaiuz0z71ov2n