Skip to content

Commit

Permalink
fix: Remove native unit of measurement restore
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Feb 11, 2025
1 parent 542074c commit 9011010
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion custom_components/solarman/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ async def async_added_to_hass(self) -> None:

if (last_sensor_data := await self.async_get_last_sensor_data()) is not None:
self._attr_native_value = last_sensor_data.native_value
self._attr_native_unit_of_measurement = last_sensor_data.native_unit_of_measurement

def set_state(self, state, value = None) -> bool:
if self._sensor_ensure_increasing and self._attr_native_value and self._attr_native_value > state > 0:
Expand Down

0 comments on commit 9011010

Please sign in to comment.