fix: fix pylint warning

This commit is contained in:
topsworld 2025-01-16 22:48:43 +08:00
parent bc62891576
commit 37492438e8
2 changed files with 2 additions and 2 deletions

View File

@ -155,6 +155,7 @@ class MIoTSpecValueListItem:
class MIoTSpecValueList: class MIoTSpecValueList:
"""MIoT SPEC value list class.""" """MIoT SPEC value list class."""
# pylint: disable=inconsistent-quotes
items: list[MIoTSpecValueListItem] items: list[MIoTSpecValueListItem]
def __init__(self, value_list: list[dict]) -> None: def __init__(self, value_list: list[dict]) -> None:
@ -218,6 +219,7 @@ class MIoTSpecValueList:
class _SpecStdLib: class _SpecStdLib:
"""MIoT-Spec-V2 standard library.""" """MIoT-Spec-V2 standard library."""
# pylint: disable=inconsistent-quotes
_lang: str _lang: str
_devices: dict[str, dict[str, str]] _devices: dict[str, dict[str, str]]
_services: dict[str, dict[str, str]] _services: dict[str, dict[str, str]]

View File

@ -67,9 +67,7 @@ from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import ed25519 from cryptography.hazmat.primitives.asymmetric import ed25519
# pylint: disable=relative-beyond-top-level # pylint: disable=relative-beyond-top-level
from .common import load_json_file
from .const import ( from .const import (
DEFAULT_INTEGRATION_LANGUAGE,
MANUFACTURER_EFFECTIVE_TIME, MANUFACTURER_EFFECTIVE_TIME,
MIHOME_CA_CERT_STR, MIHOME_CA_CERT_STR,
MIHOME_CA_CERT_SHA256) MIHOME_CA_CERT_SHA256)