fix missing sensor values for Point (#20937)
This commit is contained in:
1 parent
d049b521b2
commit
5df02f3a78
3 files changed
+4
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user