From 5c52a15df7b057e00630dc04ce170410099cfdca Mon Sep 17 00:00:00 2001 From: Christopher Fenner <9592452+CFenner@users.noreply.github.com> Date: Thu, 12 Oct 2023 15:01:23 +0200 Subject: [PATCH] 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. --- homeassistant/components/vicare/climate.py | 4 ++-- homeassistant/components/vicare/water_heater.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/vicare/climate.py b/homeassistant/components/vicare/climate.py index 3a2dcafac2d..bca0b96c726 100644 --- a/homeassistant/components/vicare/climate.py +++ b/homeassistant/components/vicare/climate.py @@ -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: diff --git a/homeassistant/components/vicare/water_heater.py b/homeassistant/components/vicare/water_heater.py index 7e90c57e320..2e312d54d7d 100644 --- a/homeassistant/components/vicare/water_heater.py +++ b/homeassistant/components/vicare/water_heater.py @@ -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}"