Minor sensor fixes (#22884)

* Minor sensor fixes

* Fix tests
This commit is contained in:
Robbie Trencheny authored and GitHub committed 2019-04-08 01:13:26 -07:00
1 parent 2d287d2abe
commit 137d80452d
4 files changed
+6 -6

No files matched your search

@@ -55,4 +55,4 @@ class MobileAppSensor(MobileAppEntity):
@property
def unit_of_measurement(self):
"""Return the unit of measurement this sensor expresses itself in."""
return self._config[ATTR_SENSOR_UOM]
return self._config.get(ATTR_SENSOR_UOM)