feat: exclude unsupported model (#1205)

* feat: ignore unsupported models (#933)

* fix: remove unnecessary logs
This commit is contained in:
Li Shuzhen
2025-06-30 11:12:58 +08:00
committed by GitHub
parent fd57e7c565
commit 6069eaaba8
5 changed files with 16 additions and 7 deletions

View File

@ -59,6 +59,7 @@ import aiohttp
# pylint: disable=relative-beyond-top-level
from .common import calc_group_id
from .const import (
UNSUPPORTED_MODELS,
DEFAULT_OAUTH2_API_HOST,
MIHOME_HTTP_API_TIMEOUT,
OAUTH2_AUTH_URL)
@ -573,6 +574,10 @@ class MIoTHttpClient:
# were implemented.
_LOGGER.info('ignore miwifi.* device, cloud, %s', did)
continue
if model in UNSUPPORTED_MODELS:
_LOGGER.info('ignore unsupported model %s, cloud, %s',
model, did)
continue
device_infos[did] = {
'did': did,
'uid': device.get('uid', None),