feat: filter miwifi.* devices

This commit is contained in:
topsworld 2025-01-03 21:37:43 +08:00
parent d65fe32a98
commit cc1b56870e

View File

@ -535,6 +535,14 @@ class MIoTHttpClient:
_LOGGER.error(
'get_device_list, cloud, invalid device, %s', device)
continue
if did.startswith('miwifi.'):
# All devices with did starting with "miwifi." are routers
# that interface between the Xiaomi home cloud and the Xiaomi
# router cloud. These routers have all defined functions but
# have not been implemented, so they are all filtered out; some
# routers that are not "miwifi.*" also have this problem.
_LOGGER.info('ignore miwifi.* device, %s', did)
continue
device_infos[did] = {
'did': did,
'uid': device.get('uid', None),