fix: fix sensor display precision

This commit is contained in:
Necroneco 2025-01-28 14:01:45 +08:00
parent 57422ddf0d
commit 93d410f9fe
No known key found for this signature in database

View File

@ -540,7 +540,7 @@ class MIoTSpecProperty(_MIoTSpecBase):
self.unit = unit
self.value_range = value_range
self.value_list = value_list
self.precision = precision or 1
self.precision = precision if precision is not None else 1
self.expr = expr
self.spec_id = hash(