Skip to content

Commit

Permalink
fix: fix miot cloud token refresh (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
topsworld authored Dec 21, 2024
1 parent 67785f7 commit f87e746
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/xiaomi_home/miot/miot_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async def refresh_access_token_async(self, refresh_token: str) -> dict:
if not isinstance(refresh_token, str):
raise MIoTOauthError('invalid refresh_token')

return await self._get_token_async(data={
return await self.__get_token_async(data={
'client_id': self._client_id,
'redirect_uri': self._redirect_url,
'refresh_token': refresh_token,
Expand Down Expand Up @@ -661,7 +661,6 @@ async def get_props_async(self, params: list) -> list:
raise MIoTHttpError('invalid response result')
return res_obj['result']


async def __get_prop_async(self, did: str, siid: int, piid: int) -> any:
results = await self.get_props_async(
params=[{'did': did, 'siid': siid, 'piid': piid}])
Expand Down

0 comments on commit f87e746

Please sign in to comment.