Fix some sensor classes (#48254)
* Fix some sensor classes * Tweak * Tweak
This commit is contained in:
parent
6932cf9534
commit
a09c8eecb7
19 changed files with 88 additions and 61 deletions
|
@ -35,3 +35,8 @@ class WithingsHealthSensor(BaseWithingsSensor, SensorEntity):
|
|||
def state(self) -> None | str | int | float:
|
||||
"""Return the state of the entity."""
|
||||
return self._state_data
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self) -> str:
|
||||
"""Return the unit of measurement of this entity, if any."""
|
||||
return self._attribute.unit_of_measurement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue