extract from constructor

This commit is contained in:
Christopher Fenner
2023-10-12 13:38:09 +02:00
parent 18aa8d6d7d
commit a33de7ca8e
2 changed files with 2 additions and 2 deletions

View File

@@ -146,6 +146,7 @@ class ViCareClimate(ClimateEntity):
_attr_max_temp = VICARE_TEMP_HEATING_MAX
_attr_target_temperature_step = PRECISION_WHOLE
_attr_preset_modes = list(HA_TO_VICARE_PRESET_HEATING)
_attributes: dict[str, Any] = {}
_current_action: bool | None = None
def __init__(self, name, api, circuit, device_config):
@@ -153,7 +154,6 @@ class ViCareClimate(ClimateEntity):
self._attr_name = name
self._api = api
self._circuit = circuit
self._attributes: dict[str, Any] = {}
self._current_mode = None
self._current_program = None
self._attr_unique_id = f"{device_config.getConfig().serial}-{circuit.id}"

View File

@@ -99,13 +99,13 @@ class ViCareWater(WaterHeaterEntity):
_attr_min_temp = VICARE_TEMP_WATER_MIN
_attr_max_temp = VICARE_TEMP_WATER_MAX
_attr_operation_list = list(HA_TO_VICARE_HVAC_DHW)
_attributes: dict[str, Any] = {}
def __init__(self, name, api, circuit, device_config):
"""Initialize the DHW water_heater device."""
self._attr_name = name
self._api = api
self._circuit = circuit
self._attributes: dict[str, Any] = {}
self._current_mode = None
self._attr_unique_id = f"{device_config.getConfig().serial}-{circuit.id}"
self._attr_device_info = DeviceInfo(