From a637c2841cd1d0d7b2993e11e75b3e8d7f30b62e Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Wed, 8 Jan 2025 08:22:09 +0100 Subject: [PATCH] issue #790 - hvac-off-reason is not restored after restart (#793) Co-authored-by: Jean-Marc Collin --- custom_components/versatile_thermostat/base_thermostat.py | 2 -- custom_components/versatile_thermostat/manifest.json | 2 +- requirements_dev.txt | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/custom_components/versatile_thermostat/base_thermostat.py b/custom_components/versatile_thermostat/base_thermostat.py index 4dc4c25..dd52dfa 100644 --- a/custom_components/versatile_thermostat/base_thermostat.py +++ b/custom_components/versatile_thermostat/base_thermostat.py @@ -605,8 +605,6 @@ class BaseThermostat(ClimateEntity, RestoreEntity, Generic[T]): "saved_preset_mode", None ) - self._hvac_off_reason = old_state.attributes.get("hvac_mode_reason", None) - old_total_energy = old_state.attributes.get(ATTR_TOTAL_ENERGY) self._total_energy = old_total_energy if old_total_energy is not None else 0 _LOGGER.debug( diff --git a/custom_components/versatile_thermostat/manifest.json b/custom_components/versatile_thermostat/manifest.json index 546ada9..c497cf4 100644 --- a/custom_components/versatile_thermostat/manifest.json +++ b/custom_components/versatile_thermostat/manifest.json @@ -14,6 +14,6 @@ "quality_scale": "silver", "requirements": [], "ssdp": [], - "version": "7.1.0", + "version": "7.1.1", "zeroconf": [] } \ No newline at end of file diff --git a/requirements_dev.txt b/requirements_dev.txt index e0e9441..cddf7fa 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1 +1 @@ -homeassistant==2024.12.3 +homeassistant==2024.12.4