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

@ -68,7 +68,7 @@ from paho.mqtt.client import (
# pylint: disable=relative-beyond-top-level
from .common import MIoTMatcher
from .const import MIHOME_MQTT_KEEPALIVE
from .const import UNSUPPORTED_MODELS, MIHOME_MQTT_KEEPALIVE
from .miot_error import MIoTErrorCode, MIoTMipsError
_LOGGER = logging.getLogger(__name__)
@ -1365,6 +1365,9 @@ class MipsLocalClient(_MipsClient):
if name is None or urn is None or model is None:
self.log_error(f'invalid device info, {did}, {info}')
continue
if model in UNSUPPORTED_MODELS:
self.log_info(f'unsupported model, {model}, {did}')
continue
device_list[did] = {
'did': did,
'name': name,