diff --git a/custom_components/xiaomi_home/config_flow.py b/custom_components/xiaomi_home/config_flow.py index b78ba6e..7c2e9ec 100644 --- a/custom_components/xiaomi_home/config_flow.py +++ b/custom_components/xiaomi_home/config_flow.py @@ -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 @@ -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] diff --git a/custom_components/xiaomi_home/miot/miot_client.py b/custom_components/xiaomi_home/miot/miot_client.py index c707924..771de41 100644 --- a/custom_components/xiaomi_home/miot/miot_client.py +++ b/custom_components/xiaomi_home/miot/miot_client.py @@ -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 diff --git a/custom_components/xiaomi_home/miot/miot_cloud.py b/custom_components/xiaomi_home/miot/miot_cloud.py index 803985b..82b4eab 100644 --- a/custom_components/xiaomi_home/miot/miot_cloud.py +++ b/custom_components/xiaomi_home/miot/miot_cloud.py @@ -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 diff --git a/custom_components/xiaomi_home/miot/miot_device.py b/custom_components/xiaomi_home/miot/miot_device.py index c890460..56637d6 100644 --- a/custom_components/xiaomi_home/miot/miot_device.py +++ b/custom_components/xiaomi_home/miot/miot_device.py @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/custom_components/xiaomi_home/miot/miot_lan.py b/custom_components/xiaomi_home/miot/miot_lan.py index aceeef3..4635572 100644 --- a/custom_components/xiaomi_home/miot/miot_lan.py +++ b/custom_components/xiaomi_home/miot/miot_lan.py @@ -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 diff --git a/custom_components/xiaomi_home/miot/miot_mips.py b/custom_components/xiaomi_home/miot/miot_mips.py index 888ace2..cbe41cf 100644 --- a/custom_components/xiaomi_home/miot/miot_mips.py +++ b/custom_components/xiaomi_home/miot/miot_mips.py @@ -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__( @@ -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 diff --git a/custom_components/xiaomi_home/miot/miot_spec.py b/custom_components/xiaomi_home/miot/miot_spec.py index cab8497..3df70f1 100644 --- a/custom_components/xiaomi_home/miot/miot_spec.py +++ b/custom_components/xiaomi_home/miot/miot_spec.py @@ -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