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 <mick@imick.nl>

Co-authored-by: Mick Vleeshouwer <mick@imick.nl>
This commit is contained in:
Nyro 2022-11-30 16:32:07 +01:00 committed by GitHub
parent dffdc78915
commit cad04bff99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -7,9 +7,7 @@ from .atlantic_electrical_heater_with_adjustable_temperature_setpoint import (
) )
from .atlantic_electrical_towel_dryer import AtlanticElectricalTowelDryer from .atlantic_electrical_towel_dryer import AtlanticElectricalTowelDryer
from .atlantic_heat_recovery_ventilation import AtlanticHeatRecoveryVentilation from .atlantic_heat_recovery_ventilation import AtlanticHeatRecoveryVentilation
from .atlantic_pass_apc_heating_and_cooling_zone import ( from .atlantic_pass_apc_heating_zone import AtlanticPassAPCHeatingZone
AtlanticPassAPCHeatingAndCoolingZone,
)
from .atlantic_pass_apc_zone_control import AtlanticPassAPCZoneControl from .atlantic_pass_apc_zone_control import AtlanticPassAPCZoneControl
from .somfy_thermostat import SomfyThermostat 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_HEATER_WITH_ADJUSTABLE_TEMPERATURE_SETPOINT: AtlanticElectricalHeaterWithAdjustableTemperatureSetpoint,
UIWidget.ATLANTIC_ELECTRICAL_TOWEL_DRYER: AtlanticElectricalTowelDryer, UIWidget.ATLANTIC_ELECTRICAL_TOWEL_DRYER: AtlanticElectricalTowelDryer,
UIWidget.ATLANTIC_HEAT_RECOVERY_VENTILATION: AtlanticHeatRecoveryVentilation, 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.ATLANTIC_PASS_APC_ZONE_CONTROL: AtlanticPassAPCZoneControl,
UIWidget.SOMFY_THERMOSTAT: SomfyThermostat, UIWidget.SOMFY_THERMOSTAT: SomfyThermostat,
} }

View file

@ -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 __future__ import annotations
from typing import Any, cast from typing import Any, cast
@ -61,8 +61,8 @@ OVERKIZ_TEMPERATURE_STATE_BY_PROFILE: dict[str, str] = {
} }
class AtlanticPassAPCHeatingAndCoolingZone(OverkizEntity, ClimateEntity): class AtlanticPassAPCHeatingZone(OverkizEntity, ClimateEntity):
"""Representation of Atlantic Pass APC Heating And Cooling Zone Control.""" """Representation of Atlantic Pass APC Heating Zone Control."""
_attr_hvac_modes = [*HVAC_MODE_TO_OVERKIZ] _attr_hvac_modes = [*HVAC_MODE_TO_OVERKIZ]
_attr_preset_modes = [*PRESET_MODES_TO_OVERKIZ] _attr_preset_modes = [*PRESET_MODES_TO_OVERKIZ]