From e2a04ea23f4ae9c1087645c96288a3979d9d5ba4 Mon Sep 17 00:00:00 2001 From: FrancoLoco <37370192+FrancoLoco@users.noreply.github.com> Date: Tue, 6 Feb 2024 09:18:22 -0500 Subject: [PATCH] Fix erreur en lien avec le last_reset --- custom_components/hilo/manifest.json | 4 ++-- custom_components/hilo/sensor.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/custom_components/hilo/manifest.json b/custom_components/hilo/manifest.json index c8b282a..cb60267 100755 --- a/custom_components/hilo/manifest.json +++ b/custom_components/hilo/manifest.json @@ -11,6 +11,6 @@ "documentation": "https://github.com/dvd-dev/hilo", "iot_class": "cloud_push", "issue_tracker": "https://github.com/dvd-dev/hilo/issues", - "requirements": ["python-hilo>=2024.2.1"], - "version": "2024.2.1" + "requirements": ["python-hilo>=2024.2.2"], + "version": "2024.2.2" } diff --git a/custom_components/hilo/sensor.py b/custom_components/hilo/sensor.py index 2d83118..7ba1014 100755 --- a/custom_components/hilo/sensor.py +++ b/custom_components/hilo/sensor.py @@ -273,7 +273,6 @@ def __init__(self, hilo, device): initial_state = 0 self._attr_native_value = initial_state self._attr_last_valid_state = initial_state - self._attr_last_reset = dt_util.utcnow() super().__init__( integration_method=METHOD_LEFT,