diff --git a/midealocal/backports/enum.py b/midealocal/backports/enum.py index 965db5a7..44d228cb 100644 --- a/midealocal/backports/enum.py +++ b/midealocal/backports/enum.py @@ -28,10 +28,10 @@ def __str__(self) -> str: @staticmethod def _generate_next_value_( - name: str, - start: int, - count: int, - last_values: list[Any], + name: str, # noqa: ARG004 + start: int, # noqa: ARG004 + count: int, # noqa: ARG004 + last_values: list[Any], # noqa: ARG004 ) -> Any: """Make `auto()` explicitly unsupported. diff --git a/midealocal/cloud.py b/midealocal/cloud.py index 731f8ea3..1991dff7 100644 --- a/midealocal/cloud.py +++ b/midealocal/cloud.py @@ -399,7 +399,7 @@ async def download_lua( path: str, device_type: int, sn: str, - model_number: str | None, + model_number: str | None, # noqa: ARG002 manufacturer_code: str = "0000", ) -> str | None: """Download lua integration.""" @@ -541,7 +541,7 @@ async def login(self) -> bool: async def list_appliances( self, - home_id: str | None, + home_id: str | None, # noqa: ARG002 ) -> dict[int, dict[str, Any]] | None: """List MSmart Cloud Devices.""" data = self._make_general_data() @@ -731,7 +731,7 @@ async def login(self) -> bool: async def list_appliances( self, - home_id: str | None, + home_id: str | None, # noqa: ARG002 ) -> dict[int, dict[str, Any]] | None: """List Midea Air devices.""" data = self._make_general_data() diff --git a/midealocal/devices/a1/__init__.py b/midealocal/devices/a1/__init__.py index ddc6bb87..7aedf70f 100644 --- a/midealocal/devices/a1/__init__.py +++ b/midealocal/devices/a1/__init__.py @@ -65,7 +65,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea A1 device.""" super().__init__( diff --git a/midealocal/devices/b0/__init__.py b/midealocal/devices/b0/__init__.py index b31ac9ae..5dad153c 100644 --- a/midealocal/devices/b0/__init__.py +++ b/midealocal/devices/b0/__init__.py @@ -51,7 +51,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize B0 Midea device.""" super().__init__( diff --git a/midealocal/devices/b1/__init__.py b/midealocal/devices/b1/__init__.py index 28d085fe..2057309e 100644 --- a/midealocal/devices/b1/__init__.py +++ b/midealocal/devices/b1/__init__.py @@ -51,7 +51,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea B1 device.""" super().__init__( diff --git a/midealocal/devices/b3/__init__.py b/midealocal/devices/b3/__init__.py index bbd0c032..2a913852 100644 --- a/midealocal/devices/b3/__init__.py +++ b/midealocal/devices/b3/__init__.py @@ -65,7 +65,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea local B3 device.""" super().__init__( diff --git a/midealocal/devices/b4/__init__.py b/midealocal/devices/b4/__init__.py index a1ac6fd8..e601ba4c 100644 --- a/midealocal/devices/b4/__init__.py +++ b/midealocal/devices/b4/__init__.py @@ -51,7 +51,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea B4 device.""" super().__init__( diff --git a/midealocal/devices/bf/__init__.py b/midealocal/devices/bf/__init__.py index 84635dd6..7fd5f5e0 100644 --- a/midealocal/devices/bf/__init__.py +++ b/midealocal/devices/bf/__init__.py @@ -51,7 +51,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea BF device.""" super().__init__( diff --git a/midealocal/devices/c3/__init__.py b/midealocal/devices/c3/__init__.py index 3c0c5f86..83aa5365 100644 --- a/midealocal/devices/c3/__init__.py +++ b/midealocal/devices/c3/__init__.py @@ -89,7 +89,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea C3 device.""" super().__init__( diff --git a/midealocal/devices/ca/__init__.py b/midealocal/devices/ca/__init__.py index 3340928d..4874be1a 100644 --- a/midealocal/devices/ca/__init__.py +++ b/midealocal/devices/ca/__init__.py @@ -53,7 +53,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea CA device.""" super().__init__( diff --git a/midealocal/devices/cc/__init__.py b/midealocal/devices/cc/__init__.py index b4c7c138..143c67ee 100644 --- a/midealocal/devices/cc/__init__.py +++ b/midealocal/devices/cc/__init__.py @@ -68,7 +68,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea CC device.""" super().__init__( diff --git a/midealocal/devices/cf/__init__.py b/midealocal/devices/cf/__init__.py index 5608510b..c240d8d9 100644 --- a/midealocal/devices/cf/__init__.py +++ b/midealocal/devices/cf/__init__.py @@ -42,7 +42,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea CF device.""" super().__init__( diff --git a/midealocal/devices/da/__init__.py b/midealocal/devices/da/__init__.py index 7e5f2973..71c93509 100644 --- a/midealocal/devices/da/__init__.py +++ b/midealocal/devices/da/__init__.py @@ -54,7 +54,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea DA device.""" super().__init__( diff --git a/midealocal/devices/db/__init__.py b/midealocal/devices/db/__init__.py index b20cb16e..eead7d1a 100644 --- a/midealocal/devices/db/__init__.py +++ b/midealocal/devices/db/__init__.py @@ -40,7 +40,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea DB device.""" super().__init__( diff --git a/midealocal/devices/dc/__init__.py b/midealocal/devices/dc/__init__.py index 82a7f624..6061e2e1 100644 --- a/midealocal/devices/dc/__init__.py +++ b/midealocal/devices/dc/__init__.py @@ -40,7 +40,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea DC device.""" super().__init__( diff --git a/midealocal/devices/e1/__init__.py b/midealocal/devices/e1/__init__.py index 7ad48917..a0644ed7 100644 --- a/midealocal/devices/e1/__init__.py +++ b/midealocal/devices/e1/__init__.py @@ -65,7 +65,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea E1 device.""" super().__init__( diff --git a/midealocal/devices/e6/__init__.py b/midealocal/devices/e6/__init__.py index b3bdd3e4..cbedef87 100644 --- a/midealocal/devices/e6/__init__.py +++ b/midealocal/devices/e6/__init__.py @@ -45,7 +45,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea E6 device.""" super().__init__( diff --git a/midealocal/devices/e8/__init__.py b/midealocal/devices/e8/__init__.py index 73c43085..c7688751 100644 --- a/midealocal/devices/e8/__init__.py +++ b/midealocal/devices/e8/__init__.py @@ -52,7 +52,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea E8 device.""" super().__init__( diff --git a/midealocal/devices/ea/__init__.py b/midealocal/devices/ea/__init__.py index bdfdf887..6b86cbab 100644 --- a/midealocal/devices/ea/__init__.py +++ b/midealocal/devices/ea/__init__.py @@ -147,7 +147,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea EA device.""" super().__init__( diff --git a/midealocal/devices/ec/__init__.py b/midealocal/devices/ec/__init__.py index 368a4390..644d05f4 100644 --- a/midealocal/devices/ec/__init__.py +++ b/midealocal/devices/ec/__init__.py @@ -159,7 +159,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea EC device.""" super().__init__( diff --git a/midealocal/devices/ed/__init__.py b/midealocal/devices/ed/__init__.py index 42b87f98..1b1cbaf7 100644 --- a/midealocal/devices/ed/__init__.py +++ b/midealocal/devices/ed/__init__.py @@ -46,7 +46,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea ED device.""" super().__init__( diff --git a/midealocal/devices/fb/__init__.py b/midealocal/devices/fb/__init__.py index e5918251..2dc6a118 100644 --- a/midealocal/devices/fb/__init__.py +++ b/midealocal/devices/fb/__init__.py @@ -53,7 +53,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea FB device.""" super().__init__( diff --git a/midealocal/devices/fd/__init__.py b/midealocal/devices/fd/__init__.py index adf6e6c2..47faf95f 100644 --- a/midealocal/devices/fd/__init__.py +++ b/midealocal/devices/fd/__init__.py @@ -74,7 +74,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea FD device.""" super().__init__( diff --git a/midealocal/devices/x26/__init__.py b/midealocal/devices/x26/__init__.py index c340b67a..3a8a1d46 100644 --- a/midealocal/devices/x26/__init__.py +++ b/midealocal/devices/x26/__init__.py @@ -66,7 +66,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea x26 device.""" super().__init__( diff --git a/midealocal/devices/x34/__init__.py b/midealocal/devices/x34/__init__.py index 7f89f3d6..120819b6 100644 --- a/midealocal/devices/x34/__init__.py +++ b/midealocal/devices/x34/__init__.py @@ -65,7 +65,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea x34 device.""" super().__init__( diff --git a/midealocal/devices/x40/__init__.py b/midealocal/devices/x40/__init__.py index 8bdaf9b3..93e0dcaf 100644 --- a/midealocal/devices/x40/__init__.py +++ b/midealocal/devices/x40/__init__.py @@ -49,7 +49,7 @@ def __init__( protocol: int, model: str, subtype: int, - customize: str, + customize: str, # noqa: ARG002 ) -> None: """Initialize Midea x40 Device.""" super().__init__( diff --git a/midealocal/security.py b/midealocal/security.py index fe6b1507..73ccade1 100644 --- a/midealocal/security.py +++ b/midealocal/security.py @@ -61,7 +61,7 @@ def __init__( self._fixed_key = format(fixed_key, "x").encode("ascii") if fixed_key else None self._fixed_iv = format(fixed_iv, "x").encode("ascii") if fixed_iv else None - def sign(self, url: str, data: dict[str, Any] | str, random: str) -> str | None: + def sign(self, url: str, data: dict[str, Any] | str, random: str) -> str | None: # noqa: ARG002 """Sign cloud data.""" msg: str = self._iot_key or "" msg += str(data) @@ -193,7 +193,7 @@ def __init__(self, login_key: str, iot_key: str, hmac_key: str) -> None: """Initialize Meiju Cloud security.""" super().__init__(login_key, iot_key, hmac_key, 10864842703515613082) - def encrypt_iam_password(self, login_id: str, data: str) -> str: + def encrypt_iam_password(self, login_id: str, data: str) -> str: # noqa: ARG002 """Encrypt IAM password.""" md = md5() md.update(data.encode("ascii")) @@ -246,7 +246,7 @@ def __init__(self, login_key: str) -> None: """Initialize Midea Air Security.""" super().__init__(login_key, None, None) - def sign(self, url: str, data: dict[str, Any] | str, random: str) -> str: + def sign(self, url: str, data: dict[str, Any] | str, random: str) -> str: # noqa: ARG002 """Sign Midea Air.""" if isinstance(data, str): raise DataSignWrongType