mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Remove _enable_turn_on_off_backwards_compatibility G-M (#132418)
This commit is contained in:
parent
768c2b0f3d
commit
ee6be6bfd6
@ -205,7 +205,6 @@ class GenericThermostat(ClimateEntity, RestoreEntity):
|
||||
"""Representation of a Generic Thermostat device."""
|
||||
|
||||
_attr_should_poll = False
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -51,7 +51,6 @@ class GeniusClimateZone(GeniusHeatingZone, ClimateEntity):
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, broker, zone) -> None:
|
||||
"""Initialize the climate device."""
|
||||
|
@ -126,7 +126,6 @@ class GreeClimateEntity(GreeEntity, ClimateEntity):
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_attr_min_temp = TEMP_MIN
|
||||
_attr_max_temp = TEMP_MAX
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, coordinator: DeviceDataUpdateCoordinator) -> None:
|
||||
"""Initialize the Gree device."""
|
||||
|
@ -82,7 +82,6 @@ class HeatmiserV3Thermostat(ClimateEntity):
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, therm, device, uh1):
|
||||
"""Initialize the thermostat."""
|
||||
|
@ -155,7 +155,6 @@ class ClimateAehW4a1(ClimateEntity):
|
||||
_attr_target_temperature_step = 1
|
||||
_previous_state: HVACMode | str | None = None
|
||||
_on: str | None = None
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, device):
|
||||
"""Initialize the climate device."""
|
||||
|
@ -100,7 +100,6 @@ class HiveClimateEntity(HiveEntity, ClimateEntity):
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, hive: Hive, hive_device: dict[str, Any]) -> None:
|
||||
"""Initialize the Climate device."""
|
||||
|
@ -136,7 +136,6 @@ class HomeKitBaseClimateEntity(HomeKitEntity, ClimateEntity):
|
||||
"""The base HomeKit Controller climate entity."""
|
||||
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
@callback
|
||||
def _async_reconfigure(self) -> None:
|
||||
|
@ -63,7 +63,6 @@ class HMThermostat(HMDevice, ClimateEntity):
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
@property
|
||||
def hvac_mode(self) -> HVACMode:
|
||||
|
@ -81,7 +81,6 @@ class HomematicipHeatingGroup(HomematicipGenericEntity, ClimateEntity):
|
||||
ClimateEntityFeature.PRESET_MODE | ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
)
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, hap: HomematicipHAP, device: AsyncHeatingGroup) -> None:
|
||||
"""Initialize heating group."""
|
||||
|
@ -165,7 +165,6 @@ class HoneywellUSThermostat(ClimateEntity):
|
||||
_attr_has_entity_name = True
|
||||
_attr_name = None
|
||||
_attr_translation_key = "honeywell"
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -56,7 +56,6 @@ class HuumDevice(ClimateEntity):
|
||||
|
||||
_target_temperature: int | None = None
|
||||
_status: HuumStatusResponse | None = None
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, huum_handler: Huum, unique_id: str) -> None:
|
||||
"""Initialize the heater."""
|
||||
|
@ -54,7 +54,6 @@ class HassAqualinkThermostat(AqualinkEntity, ClimateEntity):
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, dev: AqualinkThermostat) -> None:
|
||||
"""Initialize AquaLink thermostat."""
|
||||
|
@ -46,7 +46,6 @@ class InComfortClimate(IncomfortEntity, ClimateEntity):
|
||||
_attr_hvac_modes = [HVACMode.HEAT]
|
||||
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -94,7 +94,6 @@ class InsteonClimateEntity(InsteonEntity, ClimateEntity):
|
||||
_attr_hvac_modes = list(HVAC_MODES.values())
|
||||
_attr_fan_modes = list(FAN_MODES.values())
|
||||
_attr_min_humidity = 1
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
@property
|
||||
def temperature_unit(self) -> str:
|
||||
|
@ -58,7 +58,6 @@ class IntellifireClimate(IntellifireEntity, ClimateEntity):
|
||||
_attr_target_temperature_step = 1.0
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
last_temp = DEFAULT_THERMOSTAT_TEMP
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -147,7 +147,6 @@ class IntesisAC(ClimateEntity):
|
||||
|
||||
_attr_should_poll = False
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, ih_device_id, ih_device, controller):
|
||||
"""Initialize the thermostat."""
|
||||
|
@ -88,7 +88,6 @@ class ISYThermostatEntity(ISYNodeEntity, ClimateEntity):
|
||||
)
|
||||
_attr_target_temperature_step = 1.0
|
||||
_attr_fan_modes = [FAN_AUTO, FAN_ON]
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, node: Node, device_info: DeviceInfo | None = None) -> None:
|
||||
"""Initialize the ISY Thermostat entity."""
|
||||
|
@ -141,7 +141,6 @@ class ControllerDevice(ClimateEntity):
|
||||
_attr_has_entity_name = True
|
||||
_attr_name = None
|
||||
_attr_target_temperature_step = 0.5
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, controller: Controller) -> None:
|
||||
"""Initialise ControllerDevice."""
|
||||
|
@ -148,7 +148,6 @@ class KNXClimate(KnxYamlEntity, ClimateEntity):
|
||||
_device: XknxClimate
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_attr_translation_key = "knx_climate"
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, knx_module: KNXModule, config: ConfigType) -> None:
|
||||
"""Initialize of a KNX climate device."""
|
||||
|
@ -81,8 +81,6 @@ async def async_setup_entry(
|
||||
class LcnClimate(LcnEntity, ClimateEntity):
|
||||
"""Representation of a LCN climate device."""
|
||||
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, config: ConfigType, config_entry: ConfigEntry) -> None:
|
||||
"""Initialize of a LCN climate device."""
|
||||
super().__init__(config, config_entry)
|
||||
|
@ -55,7 +55,6 @@ class LightwaveTrv(ClimateEntity):
|
||||
)
|
||||
_attr_target_temperature_step = 0.5
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, name, device_id, lwlink, serial):
|
||||
"""Initialize LightwaveTrv entity."""
|
||||
|
@ -68,7 +68,6 @@ class LivisiClimate(LivisiEntity, ClimateEntity):
|
||||
_attr_hvac_mode = HVACMode.HEAT
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -107,7 +107,6 @@ class ConditionerEntity(LookinCoordinatorEntity, ClimateEntity):
|
||||
_attr_min_temp = MIN_TEMP
|
||||
_attr_max_temp = MAX_TEMP
|
||||
_attr_target_temperature_step = PRECISION_WHOLE
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -174,7 +174,6 @@ class LyricClimate(LyricDeviceEntity, ClimateEntity):
|
||||
PRESET_TEMPORARY_HOLD,
|
||||
PRESET_VACATION_HOLD,
|
||||
]
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -187,7 +187,7 @@ class MatterClimate(MatterEntity, ClimateEntity):
|
||||
_attr_temperature_unit: str = UnitOfTemperature.CELSIUS
|
||||
_attr_hvac_mode: HVACMode = HVACMode.OFF
|
||||
_feature_map: int | None = None
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
_platform_translation_key = "thermostat"
|
||||
|
||||
async def async_set_temperature(self, **kwargs: Any) -> None:
|
||||
|
@ -73,7 +73,6 @@ class MaxCubeClimate(ClimateEntity):
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, handler, device):
|
||||
"""Initialize MAX! Cube ClimateEntity."""
|
||||
|
@ -115,7 +115,6 @@ class MelCloudClimate(ClimateEntity):
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_attr_has_entity_name = True
|
||||
_attr_name = None
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, device: MelCloudDevice) -> None:
|
||||
"""Initialize the climate."""
|
||||
|
@ -65,7 +65,6 @@ class MelissaClimate(ClimateEntity):
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, api, serial_number, init_data):
|
||||
"""Initialize the climate device."""
|
||||
|
@ -100,7 +100,6 @@ class MillHeater(CoordinatorEntity[MillDataUpdateCoordinator], ClimateEntity):
|
||||
)
|
||||
_attr_target_temperature_step = PRECISION_TENTHS
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self, coordinator: MillDataUpdateCoordinator, heater: mill.Heater
|
||||
@ -194,7 +193,6 @@ class LocalMillHeater(CoordinatorEntity[MillDataUpdateCoordinator], ClimateEntit
|
||||
)
|
||||
_attr_target_temperature_step = PRECISION_TENTHS
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, coordinator: MillDataUpdateCoordinator) -> None:
|
||||
"""Initialize the thermostat."""
|
||||
|
@ -130,7 +130,6 @@ class ModbusThermostat(BaseStructPlatform, RestoreEntity, ClimateEntity):
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -47,7 +47,6 @@ class Alpha2Climate(CoordinatorEntity[Alpha2BaseCoordinator], ClimateEntity):
|
||||
_attr_hvac_modes = [HVACMode.HEAT, HVACMode.COOL]
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
_attr_preset_modes = [PRESET_AUTO, PRESET_DAY, PRESET_NIGHT]
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, coordinator: Alpha2BaseCoordinator, heat_area_id: str) -> None:
|
||||
"""Initialize Alpha2 ClimateEntity."""
|
||||
|
@ -521,7 +521,6 @@ class MqttClimate(MqttTemperatureControlEntity, ClimateEntity):
|
||||
_attributes_extra_blocked = MQTT_CLIMATE_ATTRIBUTES_BLOCKED
|
||||
_attr_target_temperature_low: float | None = None
|
||||
_attr_target_temperature_high: float | None = None
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
@staticmethod
|
||||
def config_schema() -> VolSchemaType:
|
||||
|
@ -72,7 +72,6 @@ class MySensorsHVAC(MySensorsChildEntity, ClimateEntity):
|
||||
"""Representation of a MySensors HVAC."""
|
||||
|
||||
_attr_hvac_modes = OPERATION_LIST
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
@property
|
||||
def supported_features(self) -> ClimateEntityFeature:
|
||||
|
Loading…
x
Reference in New Issue
Block a user