Remove _enable_turn_on_off_backwards_compatibility G-M (#132418)

This commit is contained in:
G Johansson 2024-12-05 21:47:13 +01:00 committed by GitHub
parent 768c2b0f3d
commit ee6be6bfd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
33 changed files with 1 additions and 35 deletions

View File

@ -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,

View File

@ -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."""

View File

@ -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."""

View File

@ -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."""

View File

@ -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."""

View File

@ -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."""

View File

@ -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:

View File

@ -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:

View File

@ -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."""

View File

@ -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,

View File

@ -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."""

View File

@ -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."""

View File

@ -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,

View File

@ -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:

View File

@ -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,

View File

@ -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."""

View File

@ -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."""

View File

@ -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."""

View File

@ -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."""

View File

@ -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)

View File

@ -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."""

View File

@ -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,

View File

@ -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,

View File

@ -174,7 +174,6 @@ class LyricClimate(LyricDeviceEntity, ClimateEntity):
PRESET_TEMPORARY_HOLD,
PRESET_VACATION_HOLD,
]
_enable_turn_on_off_backwards_compatibility = False
def __init__(
self,

View File

@ -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:

View File

@ -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."""

View File

@ -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."""

View File

@ -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."""

View File

@ -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."""

View File

@ -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,

View File

@ -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."""

View File

@ -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:

View File

@ -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: