Skip to content

Commit

Permalink
style: ignore type error
Browse files Browse the repository at this point in the history
  • Loading branch information
topsworld committed Jan 15, 2025
1 parent 7c1cbea commit 470215b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/xiaomi_home/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ async def async_step_oauth(
await self._miot_oauth.deinit_async()
self._miot_oauth = None
return self.async_show_progress_done(next_step_id='homes_select')
# pylint: disable=unexpected-keyword-arg
return self.async_show_progress(
step_id='oauth',
progress_action='oauth',
Expand All @@ -481,7 +482,7 @@ async def async_step_oauth(
f'<a href="{self._cc_oauth_auth_url}" target="_blank">',
'link_right': '</a>'
},
progress_task=self._cc_task_oauth,
progress_task=self._cc_task_oauth, # type: ignore
)

async def __check_oauth_async(self) -> None:
Expand Down Expand Up @@ -1196,7 +1197,7 @@ async def async_step_oauth(self, user_input=None):
err, traceback.format_exc())
self._cc_config_rc = str(err)
return self.async_show_progress_done(next_step_id='oauth_error')

# pylint: disable=unexpected-keyword-arg
return self.async_show_progress(
step_id='oauth',
progress_action='oauth',
Expand All @@ -1205,7 +1206,7 @@ async def async_step_oauth(self, user_input=None):
f'<a href="{self._cc_oauth_auth_url}" target="_blank">',
'link_right': '</a>'
},
progress_task=self._cc_task_oauth,
progress_task=self._cc_task_oauth, # type: ignore
)

async def __check_oauth_async(self) -> None:
Expand Down

0 comments on commit 470215b

Please sign in to comment.