mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 14:01:14 +08:00
Merge f852934f29 into 9ceca34b28
This commit is contained in:
commit
5e7994c528
@ -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