mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 05:50:43 +08:00
fix: fix sensor display precision
This commit is contained in:
parent
57422ddf0d
commit
93d410f9fe
@ -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…
Reference in New Issue
Block a user