perf: remove unused device info (#1574)
Some checks failed
Tests / check-rule-format (push) Failing after -8m20s
Validate / validate-hassfest (push) Failing after -8m21s
Validate / validate-hacs (push) Failing after -8m14s
Validate / validate-lint (push) Failing after -8m22s
Validate / validate-setup (push) Failing after -8m20s

This commit is contained in:
Li Shuzhen
2025-12-26 08:42:23 +08:00
committed by GitHub
parent 75390a3d83
commit f4d591b4d3
3 changed files with 19 additions and 21 deletions

View File

@@ -1256,7 +1256,15 @@ class MIoTClient:
) -> None:
_LOGGER.info(
'gateway devices list changed, %s, %s', mips.group_id, did_list)
payload: dict = {'filter': {'did': did_list}}
payload: dict = {
'filter': {
'did': did_list
},
'info': [
'name', 'model', 'urn',
'online', 'specV2Access', 'pushAvailable'
]
}
gw_list = await mips.get_dev_list_async(
payload=json.dumps(payload))
if gw_list is None:
@@ -1590,7 +1598,14 @@ class MIoTClient:
if not mips.mips_state:
_LOGGER.debug('local mips disconnect, skip refresh, %s', group_id)
return
gw_list: dict = await mips.get_dev_list_async()
payload: dict = {
'info': [
'name', 'model', 'urn',
'online', 'specV2Access', 'pushAvailable'
]
}
gw_list: dict = await mips.get_dev_list_async(
payload=json.dumps(payload))
if gw_list is None:
_LOGGER.error(
'refresh gw devices with group_id failed, %s, %s',