fix missing sensor values for Point (#20937)

This commit is contained in:
Fredrik Erlandsson authored and Fabian Affolter committed 2019-02-10 21:48:33 +01:00
1 parent d049b521b2
commit 5df02f3a78
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -67,6 +67,8 @@ class MinutPointSensor(MinutPointEntity):
@property
def state(self):
"""Return the state of the sensor."""
if self.value is None:
return None
return round(self.value, self._device_prop[1])
@property