mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-06-21 15:20:00 +08:00
style: ignore pylint wanring ('inconsistent-quotes')
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -452,6 +452,7 @@ class SpecStdLib:
|
||||
|
||||
class MIoTSpecParser:
|
||||
"""MIoT SPEC parser."""
|
||||
# pylint: disable=inconsistent-quotes
|
||||
VERSION: int = 1
|
||||
DOMAIN: str = 'miot_specs'
|
||||
_lang: str
|
||||
|
Reference in New Issue
Block a user