style: ignore pylint wanring ('inconsistent-quotes')

This commit is contained in:
topsworld 2024-12-16 10:41:30 +08:00
parent 06df255cf2
commit 7a336c31fe
7 changed files with 12 additions and 1 deletions

View File

@ -98,7 +98,7 @@ _LOGGER = logging.getLogger(__name__)
class XiaomiMihomeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Xiaomi Home config flow."""
# pylint: disable=unused-argument
# pylint: disable=unused-argument, inconsistent-quotes
VERSION = 1
MINOR_VERSION = 1
_main_loop: asyncio.AbstractEventLoop
@ -575,6 +575,7 @@ class XiaomiMihomeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
class OptionsFlowHandler(config_entries.OptionsFlow):
"""Xiaomi MiHome options flow."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
_config_entry: config_entries.ConfigEntry
_main_loop: asyncio.AbstractEventLoop
_miot_client: Optional[MIoTClient]

View File

@ -62,6 +62,7 @@ class MIoTClient:
"""MIoT client instance."""
# pylint: disable=unused-argument
# pylint: disable=broad-exception-caught
# pylint: disable=inconsistent-quotes
_main_loop: asyncio.AbstractEventLoop
_uid: str

View File

@ -218,6 +218,7 @@ class MIoTOauthClient:
class MIoTHttpClient:
"""MIoT http client."""
# pylint: disable=inconsistent-quotes
GET_PROP_AGGREGATE_INTERVAL: float = 0.2
GET_PROP_MAX_REQ_COUNT = 150
_main_loop: asyncio.AbstractEventLoop

View File

@ -688,6 +688,7 @@ class MIoTDevice:
class MIoTServiceEntity(Entity):
"""MIoT Service Entity."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
miot_device: MIoTDevice
entity_data: MIoTEntityData
@ -968,6 +969,7 @@ class MIoTServiceEntity(Entity):
class MIoTPropertyEntity(Entity):
"""MIoT Property Entity."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
miot_device: MIoTDevice
spec: MIoTSpecProperty
service: MIoTSpecService
@ -1116,6 +1118,7 @@ class MIoTPropertyEntity(Entity):
class MIoTEventEntity(Entity):
"""MIoT Event Entity."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
miot_device: MIoTDevice
spec: MIoTSpecEvent
service: MIoTSpecService
@ -1222,6 +1225,7 @@ class MIoTEventEntity(Entity):
class MIoTActionEntity(Entity):
"""MIoT Action Entity."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
miot_device: MIoTDevice
spec: MIoTSpecAction
service: MIoTSpecService

View File

@ -462,6 +462,7 @@ class MIoTLanDevice:
class MIoTLan:
"""MIoT lan device control."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
OT_HEADER: bytes = b'\x21\x31'
OT_PORT: int = 54321
OT_PROBE_LEN: int = 32

View File

@ -984,6 +984,7 @@ class MipsClient(ABC):
class MipsCloudClient(MipsClient):
"""MIoT Pub/Sub Cloud Client."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
_msg_matcher: MIoTMatcher
def __init__(
@ -1242,6 +1243,7 @@ class MipsCloudClient(MipsClient):
class MipsLocalClient(MipsClient):
"""MIoT Pub/Sub Local Client."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
MIPS_RECONNECT_INTERVAL_MIN: int = 6000
MIPS_RECONNECT_INTERVAL_MAX: int = 60000
MIPS_SUB_PATCH: int = 1000

View File

@ -452,6 +452,7 @@ class SpecStdLib:
class MIoTSpecParser:
"""MIoT SPEC parser."""
# pylint: disable=inconsistent-quotes
VERSION: int = 1
DOMAIN: str = 'miot_specs'
_lang: str