Skip to content

Commit

Permalink
style: ignore pylint wanring ('inconsistent-quotes')
Browse files Browse the repository at this point in the history
  • Loading branch information
topsworld committed Dec 16, 2024
1 parent 06df255 commit 7a336c3
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/xiaomi_home/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

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
Expand Down Expand Up @@ -575,6 +575,7 @@ def async_get_options_flow(
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]
Expand Down
1 change: 1 addition & 0 deletions custom_components/xiaomi_home/miot/miot_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions custom_components/xiaomi_home/miot/miot_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ async def refresh_access_token_async(self, refresh_token: str) -> dict:

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
Expand Down
4 changes: 4 additions & 0 deletions custom_components/xiaomi_home/miot/miot_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ def __on_device_state_changed(
class MIoTServiceEntity(Entity):
"""MIoT Service Entity."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
miot_device: MIoTDevice
entity_data: MIoTEntityData

Expand Down Expand Up @@ -968,6 +969,7 @@ def __write_ha_state_handler(self) -> None:
class MIoTPropertyEntity(Entity):
"""MIoT Property Entity."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
miot_device: MIoTDevice
spec: MIoTSpecProperty
service: MIoTSpecService
Expand Down Expand Up @@ -1116,6 +1118,7 @@ def __write_ha_state_handler(self) -> None:
class MIoTEventEntity(Entity):
"""MIoT Event Entity."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
miot_device: MIoTDevice
spec: MIoTSpecEvent
service: MIoTSpecService
Expand Down Expand Up @@ -1222,6 +1225,7 @@ def __on_device_state_changed(
class MIoTActionEntity(Entity):
"""MIoT Action Entity."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
miot_device: MIoTDevice
spec: MIoTSpecAction
service: MIoTSpecService
Expand Down
1 change: 1 addition & 0 deletions custom_components/xiaomi_home/miot/miot_lan.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ def __md5(self, data: bytes) -> bytes:
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
Expand Down
2 changes: 2 additions & 0 deletions custom_components/xiaomi_home/miot/miot_mips.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,7 @@ def __get_next_reconnect_time(self) -> int:
class MipsCloudClient(MipsClient):
"""MIoT Pub/Sub Cloud Client."""
# pylint: disable=unused-argument
# pylint: disable=inconsistent-quotes
_msg_matcher: MIoTMatcher

def __init__(
Expand Down Expand Up @@ -1242,6 +1243,7 @@ def __on_mips_message_handler(self, topic: str, payload) -> None:
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
Expand Down
1 change: 1 addition & 0 deletions custom_components/xiaomi_home/miot/miot_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ def dump(self) -> dict[str, dict[str, str]]:

class MIoTSpecParser:
"""MIoT SPEC parser."""
# pylint: disable=inconsistent-quotes
VERSION: int = 1
DOMAIN: str = 'miot_specs'
_lang: str
Expand Down

0 comments on commit 7a336c3

Please sign in to comment.