fix: fix sensor display precision (#708)

This commit is contained in:
Necroneco 2025-02-28 16:43:41 +08:00 committed by GitHub
parent 52485d8c7a
commit 6f058bf392
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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(