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:
Paul Shawn
2024-12-21 11:08:36 +08:00
committed by GitHub
parent f87e746188
commit 02ddf8df56
14 changed files with 45 additions and 42 deletions

View File

@ -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