Remove _enable_turn_on_off_backwards_compatibility T-Z (#132423)
parent
60563ae88a
commit
e7f44048e9
|
@ -269,7 +269,6 @@ class TadoClimate(TadoZoneEntity, ClimateEntity):
|
|||
_attr_name = None
|
||||
_attr_translation_key = DOMAIN
|
||||
_available = False
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -74,7 +74,6 @@ class TeslaFleetClimateEntity(TeslaFleetVehicleEntity, ClimateEntity):
|
|||
| ClimateEntityFeature.PRESET_MODE
|
||||
)
|
||||
_attr_preset_modes = ["off", "keep", "dog", "camp"]
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -220,7 +219,7 @@ class TeslaFleetCabinOverheatProtectionEntity(TeslaFleetVehicleEntity, ClimateEn
|
|||
_attr_max_temp = COP_LEVELS["High"]
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_attr_hvac_modes = list(COP_MODES.values())
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
_attr_entity_registry_enabled_default = False
|
||||
|
||||
def __init__(
|
||||
|
|
|
@ -74,7 +74,6 @@ class TeslemetryClimateEntity(TeslemetryVehicleEntity, ClimateEntity):
|
|||
| ClimateEntityFeature.PRESET_MODE
|
||||
)
|
||||
_attr_preset_modes = ["off", "keep", "dog", "camp"]
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -209,7 +208,7 @@ class TeslemetryCabinOverheatProtectionEntity(TeslemetryVehicleEntity, ClimateEn
|
|||
_attr_max_temp = COP_LEVELS["High"]
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_attr_hvac_modes = list(COP_MODES.values())
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
_attr_entity_registry_enabled_default = False
|
||||
|
||||
def __init__(
|
||||
|
|
|
@ -60,7 +60,6 @@ class TessieClimateEntity(TessieEntity, ClimateEntity):
|
|||
TessieClimateKeeper.DOG,
|
||||
TessieClimateKeeper.CAMP,
|
||||
]
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -88,7 +88,6 @@ class TfiacClimate(ClimateEntity):
|
|||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_attr_temperature_unit = UnitOfTemperature.FAHRENHEIT
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, hass, client):
|
||||
"""Init class."""
|
||||
|
|
|
@ -60,7 +60,6 @@ class SaunaClimate(ToloSaunaCoordinatorEntity, ClimateEntity):
|
|||
)
|
||||
_attr_target_temperature_step = 1
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self, coordinator: ToloSaunaUpdateCoordinator, entry: ConfigEntry
|
||||
|
|
|
@ -52,7 +52,6 @@ class ToonThermostatDevice(ToonDisplayDeviceEntity, ClimateEntity):
|
|||
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.PRESET_MODE
|
||||
)
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -70,7 +70,6 @@ class Touchline(ClimateEntity):
|
|||
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.PRESET_MODE
|
||||
)
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, touchline_thermostat):
|
||||
"""Initialize the Touchline device."""
|
||||
|
|
|
@ -67,7 +67,6 @@ class TPLinkClimateEntity(CoordinatedTPLinkEntity, ClimateEntity):
|
|||
_attr_precision = PRECISION_TENTHS
|
||||
|
||||
# This disables the warning for async_turn_{on,off}, can be removed later.
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -120,7 +120,6 @@ class TuyaClimateEntity(TuyaEntity, ClimateEntity):
|
|||
_set_temperature: IntegerTypeData | None = None
|
||||
entity_description: TuyaClimateEntityDescription
|
||||
_attr_name = None
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -42,7 +42,6 @@ class VelbusClimate(VelbusEntity, ClimateEntity):
|
|||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_attr_hvac_modes = [HVACMode.HEAT, HVACMode.COOL]
|
||||
_attr_preset_modes = list(PRESET_MODES)
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
@property
|
||||
def target_temperature(self) -> float | None:
|
||||
|
|
|
@ -110,7 +110,6 @@ class VenstarThermostat(VenstarEntity, ClimateEntity):
|
|||
_attr_hvac_modes = [HVACMode.HEAT, HVACMode.COOL, HVACMode.OFF, HVACMode.AUTO]
|
||||
_attr_precision = PRECISION_HALVES
|
||||
_attr_name = None
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -54,7 +54,6 @@ class VeraThermostat(VeraEntity[veraApi.VeraThermostat], ClimateEntity):
|
|||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self, vera_device: veraApi.VeraThermostat, controller_data: ControllerData
|
||||
|
|
|
@ -140,7 +140,6 @@ class ViCareClimate(ViCareEntity, ClimateEntity):
|
|||
_current_action: bool | None = None
|
||||
_current_mode: str | None = None
|
||||
_current_program: str | None = None
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -110,7 +110,6 @@ class AirConEntity(ClimateEntity):
|
|||
_attr_swing_modes = SUPPORTED_SWING_MODES
|
||||
_attr_target_temperature_step = SUPPORTED_TARGET_TEMPERATURE_STEP
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -56,7 +56,6 @@ class XS1ThermostatEntity(XS1DeviceEntity, ClimateEntity):
|
|||
_attr_hvac_mode = HVACMode.HEAT
|
||||
_attr_hvac_modes = [HVACMode.HEAT]
|
||||
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, device, sensor):
|
||||
"""Initialize the actuator."""
|
||||
|
|
|
@ -63,7 +63,6 @@ class YoLinkClimateEntity(YoLinkEntity, ClimateEntity):
|
|||
"""YoLink Climate Entity."""
|
||||
|
||||
_attr_name = None
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -88,7 +88,6 @@ class Thermostat(ZHAEntity, ClimateEntity):
|
|||
_attr_precision = PRECISION_TENTHS
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_attr_translation_key: str = "thermostat"
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, entity_data: EntityData, **kwargs: Any) -> None:
|
||||
"""Initialize the ZHA thermostat entity."""
|
||||
|
|
|
@ -135,7 +135,6 @@ class ZhongHongClimate(ClimateEntity):
|
|||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, hub, addr_out, addr_in):
|
||||
"""Set up the ZhongHong climate devices."""
|
||||
|
|
|
@ -128,7 +128,6 @@ class ZWaveClimate(ZWaveBaseEntity, ClimateEntity):
|
|||
"""Representation of a Z-Wave climate."""
|
||||
|
||||
_attr_precision = PRECISION_TENTHS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self, config_entry: ConfigEntry, driver: Driver, info: ZwaveDiscoveryInfo
|
||||
|
|
|
@ -57,7 +57,6 @@ class ZWaveMeClimate(ZWaveMeEntity, ClimateEntity):
|
|||
_attr_hvac_mode = HVACMode.HEAT
|
||||
_attr_hvac_modes = [HVACMode.HEAT]
|
||||
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def set_temperature(self, **kwargs: Any) -> None:
|
||||
"""Set new target temperature."""
|
||||
|
|
|
@ -462,7 +462,6 @@ async def test_sync_toggle(hass: HomeAssistant) -> None:
|
|||
class MockClimateEntityTest(MockClimateEntity):
|
||||
"""Mock Climate device."""
|
||||
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
_attr_supported_features = (
|
||||
ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue