Skip to content

Commit

Permalink
Measurement state class for pet recent weight and litter box litter w…
Browse files Browse the repository at this point in the history
…eight
  • Loading branch information
RobertD502 authored Feb 23, 2023
1 parent da01e3e commit 15210da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/petkit/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ def entity_category(self) -> EntityCategory:
def state_class(self) -> SensorStateClass:
"""Return the type of state class."""

return SensorStateClass.TOTAL
return SensorStateClass.MEASUREMENT

@property
def native_unit_of_measurement(self) -> UnitOfMass:
Expand Down Expand Up @@ -2241,7 +2241,7 @@ def device_class(self) -> SensorDeviceClass:
def state_class(self) -> SensorStateClass:
"""Return the type of state class."""

return SensorStateClass.TOTAL
return SensorStateClass.MEASUREMENT

def grab_recent_weight(self) -> float:
"""Grab the most recent weight."""
Expand Down

0 comments on commit 15210da

Please sign in to comment.