Remove Youless native unit of measurement (#55492)
This commit is contained in:
parent
5d1a193eca
commit
cc4b2fbcfa
1 changed files with 0 additions and 8 deletions
|
@ -82,14 +82,6 @@ class YoulessBaseSensor(CoordinatorEntity, SensorEntity):
|
|||
"""Property to get the underlying sensor object."""
|
||||
return None
|
||||
|
||||
@property
|
||||
def native_unit_of_measurement(self) -> str | None:
|
||||
"""Return the unit of measurement for the sensor."""
|
||||
if self.get_sensor is None:
|
||||
return None
|
||||
|
||||
return self.get_sensor.unit_of_measurement
|
||||
|
||||
@property
|
||||
def native_value(self) -> StateType:
|
||||
"""Determine the state value, only if a sensor is initialized."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue