mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
extract from constructor
This commit is contained in:
@@ -146,6 +146,7 @@ class ViCareClimate(ClimateEntity):
|
|||||||
_attr_max_temp = VICARE_TEMP_HEATING_MAX
|
_attr_max_temp = VICARE_TEMP_HEATING_MAX
|
||||||
_attr_target_temperature_step = PRECISION_WHOLE
|
_attr_target_temperature_step = PRECISION_WHOLE
|
||||||
_attr_preset_modes = list(HA_TO_VICARE_PRESET_HEATING)
|
_attr_preset_modes = list(HA_TO_VICARE_PRESET_HEATING)
|
||||||
|
_attributes: dict[str, Any] = {}
|
||||||
_current_action: bool | None = None
|
_current_action: bool | None = None
|
||||||
|
|
||||||
def __init__(self, name, api, circuit, device_config):
|
def __init__(self, name, api, circuit, device_config):
|
||||||
@@ -153,7 +154,6 @@ class ViCareClimate(ClimateEntity):
|
|||||||
self._attr_name = name
|
self._attr_name = name
|
||||||
self._api = api
|
self._api = api
|
||||||
self._circuit = circuit
|
self._circuit = circuit
|
||||||
self._attributes: dict[str, Any] = {}
|
|
||||||
self._current_mode = None
|
self._current_mode = None
|
||||||
self._current_program = None
|
self._current_program = None
|
||||||
self._attr_unique_id = f"{device_config.getConfig().serial}-{circuit.id}"
|
self._attr_unique_id = f"{device_config.getConfig().serial}-{circuit.id}"
|
||||||
|
@@ -99,13 +99,13 @@ class ViCareWater(WaterHeaterEntity):
|
|||||||
_attr_min_temp = VICARE_TEMP_WATER_MIN
|
_attr_min_temp = VICARE_TEMP_WATER_MIN
|
||||||
_attr_max_temp = VICARE_TEMP_WATER_MAX
|
_attr_max_temp = VICARE_TEMP_WATER_MAX
|
||||||
_attr_operation_list = list(HA_TO_VICARE_HVAC_DHW)
|
_attr_operation_list = list(HA_TO_VICARE_HVAC_DHW)
|
||||||
|
_attributes: dict[str, Any] = {}
|
||||||
|
|
||||||
def __init__(self, name, api, circuit, device_config):
|
def __init__(self, name, api, circuit, device_config):
|
||||||
"""Initialize the DHW water_heater device."""
|
"""Initialize the DHW water_heater device."""
|
||||||
self._attr_name = name
|
self._attr_name = name
|
||||||
self._api = api
|
self._api = api
|
||||||
self._circuit = circuit
|
self._circuit = circuit
|
||||||
self._attributes: dict[str, Any] = {}
|
|
||||||
self._current_mode = None
|
self._current_mode = None
|
||||||
self._attr_unique_id = f"{device_config.getConfig().serial}-{circuit.id}"
|
self._attr_unique_id = f"{device_config.getConfig().serial}-{circuit.id}"
|
||||||
self._attr_device_info = DeviceInfo(
|
self._attr_device_info = DeviceInfo(
|
||||||
|
Reference in New Issue
Block a user