Properly return self._unit_of_measurement in the unit_of_measurement function (#7341)

Add an optional extended description…
pull/6527/merge
Robbie Trencheny 2017-04-28 03:26:17 -07:00 committed by Pascal Vizeli
parent 8114c45b3d
commit 9dd28ac18f
1 changed files with 1 additions and 0 deletions

View File

@ -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):