From cad04bff99cb82ec6163a94e0035d206527520bf Mon Sep 17 00:00:00 2001 From: Nyro Date: Wed, 30 Nov 2022 16:32:07 +0100 Subject: [PATCH] Use same Overkiz (Atlantic) climate entity for 2 different ui widget name (#82955) * Use same overkiz entity for 2 different ui widget name * Update homeassistant/components/overkiz/climate_entities/__init__.py Co-authored-by: Mick Vleeshouwer Co-authored-by: Mick Vleeshouwer --- .../components/overkiz/climate_entities/__init__.py | 8 ++++---- ..._cooling_zone.py => atlantic_pass_apc_heating_zone.py} | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) rename homeassistant/components/overkiz/climate_entities/{atlantic_pass_apc_heating_and_cooling_zone.py => atlantic_pass_apc_heating_zone.py} (97%) diff --git a/homeassistant/components/overkiz/climate_entities/__init__.py b/homeassistant/components/overkiz/climate_entities/__init__.py index 5d676e49747..e70315e099d 100644 --- a/homeassistant/components/overkiz/climate_entities/__init__.py +++ b/homeassistant/components/overkiz/climate_entities/__init__.py @@ -7,9 +7,7 @@ from .atlantic_electrical_heater_with_adjustable_temperature_setpoint import ( ) from .atlantic_electrical_towel_dryer import AtlanticElectricalTowelDryer from .atlantic_heat_recovery_ventilation import AtlanticHeatRecoveryVentilation -from .atlantic_pass_apc_heating_and_cooling_zone import ( - AtlanticPassAPCHeatingAndCoolingZone, -) +from .atlantic_pass_apc_heating_zone import AtlanticPassAPCHeatingZone from .atlantic_pass_apc_zone_control import AtlanticPassAPCZoneControl from .somfy_thermostat import SomfyThermostat @@ -18,7 +16,9 @@ WIDGET_TO_CLIMATE_ENTITY = { UIWidget.ATLANTIC_ELECTRICAL_HEATER_WITH_ADJUSTABLE_TEMPERATURE_SETPOINT: AtlanticElectricalHeaterWithAdjustableTemperatureSetpoint, UIWidget.ATLANTIC_ELECTRICAL_TOWEL_DRYER: AtlanticElectricalTowelDryer, UIWidget.ATLANTIC_HEAT_RECOVERY_VENTILATION: AtlanticHeatRecoveryVentilation, - UIWidget.ATLANTIC_PASS_APC_HEATING_AND_COOLING_ZONE: AtlanticPassAPCHeatingAndCoolingZone, + # ATLANTIC_PASS_APC_HEATING_AND_COOLING_ZONE works exactly the same as ATLANTIC_PASS_APC_HEATING_ZONE + UIWidget.ATLANTIC_PASS_APC_HEATING_AND_COOLING_ZONE: AtlanticPassAPCHeatingZone, + UIWidget.ATLANTIC_PASS_APC_HEATING_ZONE: AtlanticPassAPCHeatingZone, UIWidget.ATLANTIC_PASS_APC_ZONE_CONTROL: AtlanticPassAPCZoneControl, UIWidget.SOMFY_THERMOSTAT: SomfyThermostat, } diff --git a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_and_cooling_zone.py b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py similarity index 97% rename from homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_and_cooling_zone.py rename to homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py index efdbf94d9f7..3d1f9038356 100644 --- a/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_and_cooling_zone.py +++ b/homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_heating_zone.py @@ -1,4 +1,4 @@ -"""Support for Atlantic Pass APC Heating And Cooling Zone Control.""" +"""Support for Atlantic Pass APC Heating Control.""" from __future__ import annotations from typing import Any, cast @@ -61,8 +61,8 @@ OVERKIZ_TEMPERATURE_STATE_BY_PROFILE: dict[str, str] = { } -class AtlanticPassAPCHeatingAndCoolingZone(OverkizEntity, ClimateEntity): - """Representation of Atlantic Pass APC Heating And Cooling Zone Control.""" +class AtlanticPassAPCHeatingZone(OverkizEntity, ClimateEntity): + """Representation of Atlantic Pass APC Heating Zone Control.""" _attr_hvac_modes = [*HVAC_MODE_TO_OVERKIZ] _attr_preset_modes = [*PRESET_MODES_TO_OVERKIZ]