Skip to content

Commit ac57004

Browse files
chore(pre-commit.ci): auto fixes
1 parent 9705abf commit ac57004

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

midealocal/cloud.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -843,24 +843,25 @@ async def list_appliances(
843843

844844

845845
class ToshibaIOLife(MideaAirCloud):
846-
""" Toshiba IOLife """
846+
"""Toshiba IOLife"""
847+
847848
async def list_appliance_types(
848849
self,
849850
) -> dict[int, dict[str, Any]] | None:
850-
""" List Toshiba IOLife device types """
851+
"""List Toshiba IOLife device types"""
851852
data = self._make_general_data()
852853
data.update({"applianceType": "0xFF"})
853854
if response := await self._api_request(
854855
endpoint="/v1/appliance/type/list/get",
855856
data=data,
856857
):
857-
return(data)
858+
return data
858859
return None
859860

860861
async def list_appliances(
861862
self,
862863
) -> dict[int, dict[str, Any]] | None:
863-
""" Get Toshiba IOLife devices."""
864+
"""Get Toshiba IOLife devices."""
864865
data = self._make_general_data()
865866
if response := await self._api_request(
866867
endpoint="/v2/appliance/user/list/get",
@@ -899,7 +900,6 @@ async def list_appliances(
899900
return appliances
900901
return None
901902

902-
903903
# FIXME: this isn't working:
904904
async def download_lua(
905905
self,
@@ -913,19 +913,20 @@ async def download_lua(
913913
data = self._make_general_data()
914914
data.update(
915915
{
916-
"appId": self._app_id,
917-
"appKey": self._app_key,
918-
"applianceMFCode": manufacturer_code,
919-
"applianceType": hex(device_type),
920-
"modelNumber": "",
921-
"applianceSn": sn,
922-
"version": "0",
923-
})
916+
"appId": self._app_id,
917+
"appKey": self._app_key,
918+
"applianceMFCode": manufacturer_code,
919+
"applianceType": hex(device_type),
920+
"modelNumber": "",
921+
"applianceSn": sn,
922+
"version": "0",
923+
}
924+
)
924925
if model_number is not None:
925926
data["modelNumber"] = model_number
926927
fnm = None
927928
if response := await self._api_request(
928-
endpoint="/v1/appliance/protocol/lua/luaGet", # FIXME: Wrong URL?
929+
endpoint="/v1/appliance/protocol/lua/luaGet", # FIXME: Wrong URL?
929930
data=data,
930931
):
931932
res = await self._session.get(response["url"])

0 commit comments

Comments
 (0)