forked from home-assistant/core
Remove Youless native unit of measurement (#55492)
This commit is contained in:
@@ -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."""
|
||||
|
Reference in New Issue
Block a user