mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-06-07 02:04:43 +08:00
style: ignore pylint wanring ('inconsistent-quotes')
This commit is contained in:
parent
06df255cf2
commit
7a336c31fe
@ -98,7 +98,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class XiaomiMihomeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
class XiaomiMihomeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
"""Xiaomi Home config flow."""
|
"""Xiaomi Home config flow."""
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument, inconsistent-quotes
|
||||||
VERSION = 1
|
VERSION = 1
|
||||||
MINOR_VERSION = 1
|
MINOR_VERSION = 1
|
||||||
_main_loop: asyncio.AbstractEventLoop
|
_main_loop: asyncio.AbstractEventLoop
|
||||||
@ -575,6 +575,7 @@ class XiaomiMihomeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
class OptionsFlowHandler(config_entries.OptionsFlow):
|
class OptionsFlowHandler(config_entries.OptionsFlow):
|
||||||
"""Xiaomi MiHome options flow."""
|
"""Xiaomi MiHome options flow."""
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
|
# pylint: disable=inconsistent-quotes
|
||||||
_config_entry: config_entries.ConfigEntry
|
_config_entry: config_entries.ConfigEntry
|
||||||
_main_loop: asyncio.AbstractEventLoop
|
_main_loop: asyncio.AbstractEventLoop
|
||||||
_miot_client: Optional[MIoTClient]
|
_miot_client: Optional[MIoTClient]
|
||||||
|
@ -62,6 +62,7 @@ class MIoTClient:
|
|||||||
"""MIoT client instance."""
|
"""MIoT client instance."""
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
# pylint: disable=broad-exception-caught
|
# pylint: disable=broad-exception-caught
|
||||||
|
# pylint: disable=inconsistent-quotes
|
||||||
_main_loop: asyncio.AbstractEventLoop
|
_main_loop: asyncio.AbstractEventLoop
|
||||||
|
|
||||||
_uid: str
|
_uid: str
|
||||||
|
@ -218,6 +218,7 @@ class MIoTOauthClient:
|
|||||||
|
|
||||||
class MIoTHttpClient:
|
class MIoTHttpClient:
|
||||||
"""MIoT http client."""
|
"""MIoT http client."""
|
||||||
|
# pylint: disable=inconsistent-quotes
|
||||||
GET_PROP_AGGREGATE_INTERVAL: float = 0.2
|
GET_PROP_AGGREGATE_INTERVAL: float = 0.2
|
||||||
GET_PROP_MAX_REQ_COUNT = 150
|
GET_PROP_MAX_REQ_COUNT = 150
|
||||||
_main_loop: asyncio.AbstractEventLoop
|
_main_loop: asyncio.AbstractEventLoop
|
||||||
|
@ -688,6 +688,7 @@ class MIoTDevice:
|
|||||||
class MIoTServiceEntity(Entity):
|
class MIoTServiceEntity(Entity):
|
||||||
"""MIoT Service Entity."""
|
"""MIoT Service Entity."""
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
|
# pylint: disable=inconsistent-quotes
|
||||||
miot_device: MIoTDevice
|
miot_device: MIoTDevice
|
||||||
entity_data: MIoTEntityData
|
entity_data: MIoTEntityData
|
||||||
|
|
||||||
@ -968,6 +969,7 @@ class MIoTServiceEntity(Entity):
|
|||||||
class MIoTPropertyEntity(Entity):
|
class MIoTPropertyEntity(Entity):
|
||||||
"""MIoT Property Entity."""
|
"""MIoT Property Entity."""
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
|
# pylint: disable=inconsistent-quotes
|
||||||
miot_device: MIoTDevice
|
miot_device: MIoTDevice
|
||||||
spec: MIoTSpecProperty
|
spec: MIoTSpecProperty
|
||||||
service: MIoTSpecService
|
service: MIoTSpecService
|
||||||
@ -1116,6 +1118,7 @@ class MIoTPropertyEntity(Entity):
|
|||||||
class MIoTEventEntity(Entity):
|
class MIoTEventEntity(Entity):
|
||||||
"""MIoT Event Entity."""
|
"""MIoT Event Entity."""
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
|
# pylint: disable=inconsistent-quotes
|
||||||
miot_device: MIoTDevice
|
miot_device: MIoTDevice
|
||||||
spec: MIoTSpecEvent
|
spec: MIoTSpecEvent
|
||||||
service: MIoTSpecService
|
service: MIoTSpecService
|
||||||
@ -1222,6 +1225,7 @@ class MIoTEventEntity(Entity):
|
|||||||
class MIoTActionEntity(Entity):
|
class MIoTActionEntity(Entity):
|
||||||
"""MIoT Action Entity."""
|
"""MIoT Action Entity."""
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
|
# pylint: disable=inconsistent-quotes
|
||||||
miot_device: MIoTDevice
|
miot_device: MIoTDevice
|
||||||
spec: MIoTSpecAction
|
spec: MIoTSpecAction
|
||||||
service: MIoTSpecService
|
service: MIoTSpecService
|
||||||
|
@ -462,6 +462,7 @@ class MIoTLanDevice:
|
|||||||
class MIoTLan:
|
class MIoTLan:
|
||||||
"""MIoT lan device control."""
|
"""MIoT lan device control."""
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
|
# pylint: disable=inconsistent-quotes
|
||||||
OT_HEADER: bytes = b'\x21\x31'
|
OT_HEADER: bytes = b'\x21\x31'
|
||||||
OT_PORT: int = 54321
|
OT_PORT: int = 54321
|
||||||
OT_PROBE_LEN: int = 32
|
OT_PROBE_LEN: int = 32
|
||||||
|
@ -984,6 +984,7 @@ class MipsClient(ABC):
|
|||||||
class MipsCloudClient(MipsClient):
|
class MipsCloudClient(MipsClient):
|
||||||
"""MIoT Pub/Sub Cloud Client."""
|
"""MIoT Pub/Sub Cloud Client."""
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
|
# pylint: disable=inconsistent-quotes
|
||||||
_msg_matcher: MIoTMatcher
|
_msg_matcher: MIoTMatcher
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
@ -1242,6 +1243,7 @@ class MipsCloudClient(MipsClient):
|
|||||||
class MipsLocalClient(MipsClient):
|
class MipsLocalClient(MipsClient):
|
||||||
"""MIoT Pub/Sub Local Client."""
|
"""MIoT Pub/Sub Local Client."""
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
|
# pylint: disable=inconsistent-quotes
|
||||||
MIPS_RECONNECT_INTERVAL_MIN: int = 6000
|
MIPS_RECONNECT_INTERVAL_MIN: int = 6000
|
||||||
MIPS_RECONNECT_INTERVAL_MAX: int = 60000
|
MIPS_RECONNECT_INTERVAL_MAX: int = 60000
|
||||||
MIPS_SUB_PATCH: int = 1000
|
MIPS_SUB_PATCH: int = 1000
|
||||||
|
@ -452,6 +452,7 @@ class SpecStdLib:
|
|||||||
|
|
||||||
class MIoTSpecParser:
|
class MIoTSpecParser:
|
||||||
"""MIoT SPEC parser."""
|
"""MIoT SPEC parser."""
|
||||||
|
# pylint: disable=inconsistent-quotes
|
||||||
VERSION: int = 1
|
VERSION: int = 1
|
||||||
DOMAIN: str = 'miot_specs'
|
DOMAIN: str = 'miot_specs'
|
||||||
_lang: str
|
_lang: str
|
||||||
|
Loading…
x
Reference in New Issue
Block a user