From e306d56e721ef6bfabf20d5d1a81b91322abb417 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 19 Sep 2023 12:44:21 +0800 Subject: [PATCH] fix type of parament of base class --- custom_components/midea_auto_codec/core/cloud.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/custom_components/midea_auto_codec/core/cloud.py b/custom_components/midea_auto_codec/core/cloud.py index 76731ea..714908f 100644 --- a/custom_components/midea_auto_codec/core/cloud.py +++ b/custom_components/midea_auto_codec/core/cloud.py @@ -59,8 +59,7 @@ class MideaCloud: self._login_id = None def _make_general_data(self): - return { - } + return {} async def _api_request(self, endpoint: str, data: dict, header=None) -> dict | None: header = header or {} @@ -147,7 +146,7 @@ class MideaCloud: async def download_lua( self, path: str, - device_type: str, + device_type: int, sn: str, model_number: str | None, manufacturer_code: str = "0000",