From cc4b2fbcfa5120023c3cc2534b41037b313d10e6 Mon Sep 17 00:00:00 2001 From: gjong Date: Tue, 31 Aug 2021 19:22:00 +0200 Subject: [PATCH] Remove Youless native unit of measurement (#55492) --- homeassistant/components/youless/sensor.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/homeassistant/components/youless/sensor.py b/homeassistant/components/youless/sensor.py index 22fecfe1ec6..0b081ab15a2 100644 --- a/homeassistant/components/youless/sensor.py +++ b/homeassistant/components/youless/sensor.py @@ -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."""