mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix type issue in vicare integration (#101872)
* fix type issue * fix type issue * fix type issue * extract from constructor * Revert "extract from constructor" This reverts commit a33de7ca8e75845b81c548c73745b15a98d2bd63.
This commit is contained in:
parent
6e1c23906c
commit
5c52a15df7
@ -146,6 +146,7 @@ class ViCareClimate(ViCareEntity, ClimateEntity):
|
||||
_attr_max_temp = VICARE_TEMP_HEATING_MAX
|
||||
_attr_target_temperature_step = PRECISION_WHOLE
|
||||
_attr_preset_modes = list(HA_TO_VICARE_PRESET_HEATING)
|
||||
_current_action: bool | None = None
|
||||
|
||||
def __init__(self, name, api, circuit, device_config):
|
||||
"""Initialize the climate device."""
|
||||
@ -153,10 +154,9 @@ class ViCareClimate(ViCareEntity, ClimateEntity):
|
||||
self._attr_name = name
|
||||
self._api = api
|
||||
self._circuit = circuit
|
||||
self._attributes = {}
|
||||
self._attributes: dict[str, Any] = {}
|
||||
self._current_mode = None
|
||||
self._current_program = None
|
||||
self._current_action = None
|
||||
self._attr_unique_id = f"{device_config.getConfig().serial}-{circuit.id}"
|
||||
|
||||
def update(self) -> None:
|
||||
|
@ -106,7 +106,7 @@ class ViCareWater(ViCareEntity, WaterHeaterEntity):
|
||||
self._attr_name = name
|
||||
self._api = api
|
||||
self._circuit = circuit
|
||||
self._attributes = {}
|
||||
self._attributes: dict[str, Any] = {}
|
||||
self._current_mode = None
|
||||
self._attr_unique_id = f"{device_config.getConfig().serial}-{circuit.id}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user