Skip to content

Commit

Permalink
Fix energy live sensor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Aug 21, 2024
1 parent bec474a commit 9c2dc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/teslemetry/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ def __init__(
def _async_update_attrs(self) -> None:
"""Update the attributes of the sensor."""
self._attr_available = not self.exactly(None)
self._attr_native_value = self.entity_description.value_fn(value)
self._attr_native_value = self.entity_description.value_fn(self._value)


class TeslemetryWallConnectorSensorEntity(TeslemetryWallConnectorEntity, SensorEntity):
Expand Down

0 comments on commit 9c2dc47

Please sign in to comment.