mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-18 08:00:42 +08:00
Compare commits
2 Commits
5e7994c528
...
972cff4f5e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
972cff4f5e | ||
|
|
f852934f29 |
@ -573,6 +573,9 @@ class MIoTDevice:
|
|||||||
# Irregular property will not be transformed.
|
# Irregular property will not be transformed.
|
||||||
pass
|
pass
|
||||||
elif prop.readable or prop.notifiable:
|
elif prop.readable or prop.notifiable:
|
||||||
|
if prop.format_ == 'bool':
|
||||||
|
prop.platform = 'binary_sensor'
|
||||||
|
else:
|
||||||
prop.platform = 'sensor'
|
prop.platform = 'sensor'
|
||||||
if prop.platform:
|
if prop.platform:
|
||||||
self.append_prop(prop=prop)
|
self.append_prop(prop=prop)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user