diff --git a/custom_components/teslemetry/sensor.py b/custom_components/teslemetry/sensor.py index 48b8cdf..e06e50f 100644 --- a/custom_components/teslemetry/sensor.py +++ b/custom_components/teslemetry/sensor.py @@ -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):