From 202e09eaad830c59e1754a4984a8955ed92a081b Mon Sep 17 00:00:00 2001 From: "Justin.Mason" Date: Tue, 19 Mar 2024 10:12:03 +0000 Subject: [PATCH] Always record value (as in https://github.com/hultenvp/solis-sensor/pull/239 ) --- 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 3ff43e8..14667e6 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()