diff --git a/custom_components/precoscombustiveis/sensor.py b/custom_components/precoscombustiveis/sensor.py index f32f2d4..b9e4e3d 100644 --- a/custom_components/precoscombustiveis/sensor.py +++ b/custom_components/precoscombustiveis/sensor.py @@ -60,7 +60,7 @@ def __init__(self, api: DGEG, stationId: float, station: Station, fuelName: str) self._icon = DEFAULT_ICON self._unit_of_measurement = UNIT_OF_MEASUREMENT self._device_class = SensorDeviceClass.MONETARY - self._state_class = SensorStateClass.TOTAL + self._state_class = SensorStateClass.MEASUREMENT self._state = None self._available = True @@ -125,4 +125,4 @@ async def async_update(self) -> None: self._state = gasStation.getPrice(self._fuelName) except aiohttp.ClientError as err: self._available = False - _LOGGER.exception("Error updating data from DGEG API. %s", err) \ No newline at end of file + _LOGGER.exception("Error updating data from DGEG API. %s", err)