Some Z-Wave fixes
This commit is contained in:
1 parent
8ff1bcf242
commit
569b15d790
3 files changed
+5
-3
No files matched your search
@@ -120,6 +120,8 @@ class ZWaveMultilevelSensor(ZWaveSensor):
|
||||
|
||||
if self._value.units in ('C', 'F'):
|
||||
return round(value, 1)
|
||||
elif isinstance(value, float):
|
||||
return round(value, 2)
|
||||
|
||||
return value
|
||||
|
||||
|
||||
Reference in new issue
Block a user