mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-07-07 04:09:06 +08:00
feat: subscribe the BLE device up messages even though the device is offline (#1207)
Some checks failed
Some checks failed
* feat: subscribe the BLE device up messages even though the device is offline (#1170) * fix: set all BLE devices online
This commit is contained in:
@ -1354,6 +1354,11 @@ class MIoTClient:
|
||||
"""Update cloud devices.
|
||||
NOTICE: This function will operate the cloud_list
|
||||
"""
|
||||
# MIoT cloud service may not publish the online state updating message
|
||||
# for the BLE device. Assume that all BLE devices are online.
|
||||
for did, info in cloud_list.items():
|
||||
if did.startswith('blt.'):
|
||||
info['online'] = True
|
||||
for did, info in self._device_list_cache.items():
|
||||
if filter_dids and did not in filter_dids:
|
||||
continue
|
||||
|
Reference in New Issue
Block a user