mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-03-31 14:55:31 +08:00
fix: fix sensor display precision (#708)
This commit is contained in:
parent
52485d8c7a
commit
6f058bf392
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user