Skip to content

Commit

Permalink
Add measurement state_class to 1wire sensors
Browse files Browse the repository at this point in the history
Fix #206
  • Loading branch information
kamaradclimber committed May 29, 2024
1 parent 98d7702 commit 43cfa90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/aquarea/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ def message_received(message):
name=f"HeishaMon 1wire {device_id}",
native_unit_of_measurement="°C", # we assume everything will be temperature
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
device=DeviceType.HEISHAMON,
)
sensor = HeishaMonSensor(self.hass, description, self.config_entry)
Expand Down

0 comments on commit 43cfa90

Please sign in to comment.