From ade1a8fb7b584e48948d01aff8462f3370683edc Mon Sep 17 00:00:00 2001 From: Justin Mason Date: Fri, 16 Dec 2022 11:51:30 +0000 Subject: [PATCH] always record new datapoints, even if they haven't changed value --- custom_components/solis/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/solis/sensor.py b/custom_components/solis/sensor.py index efc81c8..bdcabe4 100644 --- a/custom_components/solis/sensor.py +++ b/custom_components/solis/sensor.py @@ -176,7 +176,7 @@ def __init__(self, def do_update(self, value: Any, last_updated: datetime) -> bool: """ Update the sensor.""" - if self.hass and self._attr_native_value != value: + if self.hass: self._attr_native_value = value self._attributes[LAST_UPDATED] = last_updated self.async_write_ha_state()