From 9dd28ac18fba50e07034372b4d975f04aeaafac4 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Fri, 28 Apr 2017 03:26:17 -0700 Subject: [PATCH] Properly return self._unit_of_measurement in the unit_of_measurement function (#7341) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- homeassistant/components/sensor/ios.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/sensor/ios.py b/homeassistant/components/sensor/ios.py index 3173eec4285..1455431e5f7 100644 --- a/homeassistant/components/sensor/ios.py +++ b/homeassistant/components/sensor/ios.py @@ -63,6 +63,7 @@ class IOSSensor(Entity): @property def unit_of_measurement(self): """Return the unit of measurement this sensor expresses itself in.""" + return self._unit_of_measurement @property def device_state_attributes(self):