diff --git a/custom_components/tuya_local/climate.py b/custom_components/tuya_local/climate.py index bb14c1628f..5cfeabe87b 100644 --- a/custom_components/tuya_local/climate.py +++ b/custom_components/tuya_local/climate.py @@ -96,6 +96,12 @@ def __init__(self, device: TuyaLocalDevice, config: TuyaEntityConfig): self._init_end(dps_map) + # Disable HA's backwards compatibility auto creation of turn_on/off + # we explicitly define our own so this should have no effect, but + # the deprecation notices in HA use this flag rather than properly + # checking whether we are falling back on the auto-generation. + self._enable_turn_on_off_backwards_compatibility = False + if self._aux_heat_dps: self._attr_supported_features |= ClimateEntityFeature.AUX_HEAT if self._fan_mode_dps: