mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Remove Youless native unit of measurement (#55492)
This commit is contained in:
parent
5d1a193eca
commit
cc4b2fbcfa
@ -82,14 +82,6 @@ class YoulessBaseSensor(CoordinatorEntity, SensorEntity):
|
|||||||
"""Property to get the underlying sensor object."""
|
"""Property to get the underlying sensor object."""
|
||||||
return None
|
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
|
@property
|
||||||
def native_value(self) -> StateType:
|
def native_value(self) -> StateType:
|
||||||
"""Determine the state value, only if a sensor is initialized."""
|
"""Determine the state value, only if a sensor is initialized."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user