mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-06-21 10:23:57 +08:00
fix: fix lan ctrl filter logic (#303)
* style: rename devices_filter to homes_select * fix: fix miot_lan update_devices * fix: async blocking call
This commit is contained in:
@ -1028,6 +1028,7 @@ class MIoTClient:
|
||||
self._miot_lan.update_devices(devices={
|
||||
did: {
|
||||
'token': info['token'],
|
||||
'model': info['model'],
|
||||
'connect_type': info['connect_type']}
|
||||
for did, info in self._device_list_cache.items()
|
||||
if 'token' in info and 'connect_type' in info
|
||||
@ -1291,6 +1292,7 @@ class MIoTClient:
|
||||
self._miot_lan.update_devices(devices={
|
||||
did: {
|
||||
'token': info['token'],
|
||||
'model': info['model'],
|
||||
'connect_type': info['connect_type']}
|
||||
for did, info in self._device_list_cache.items()
|
||||
if 'token' in info and 'connect_type' in info
|
||||
|
Reference in New Issue
Block a user