Skip to content

Commit

Permalink
Always record value (as in hultenvp#239 )
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin.Mason authored and Justin.Mason committed Mar 19, 2024
1 parent 9de3a88 commit 202e09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solis/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 202e09e

Please sign in to comment.