Remove Youless native unit of measurement (#55492)

This commit is contained in:
gjong 2021-08-31 19:22:00 +02:00 committed by GitHub
parent 5d1a193eca
commit cc4b2fbcfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."""