mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-14 21:40:42 +08:00
Merge f852934f29 into 3b89536bda
This commit is contained in:
commit
cf14bedb13
@ -573,7 +573,10 @@ class MIoTDevice:
|
||||
# Irregular property will not be transformed.
|
||||
pass
|
||||
elif prop.readable or prop.notifiable:
|
||||
prop.platform = 'sensor'
|
||||
if prop.format_ == 'bool':
|
||||
prop.platform = 'binary_sensor'
|
||||
else:
|
||||
prop.platform = 'sensor'
|
||||
if prop.platform:
|
||||
self.append_prop(prop=prop)
|
||||
# STEP 3.2: event conversion
|
||||
|
||||
Loading…
Reference in New Issue
Block a user