Skip to content

Commit

Permalink
remove a error return
Browse files Browse the repository at this point in the history
  • Loading branch information
georgezhao2010 committed Oct 17, 2023
1 parent e2ad6f7 commit 9a179e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/midea_ac_lan/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,6 @@ async def async_step_auto(self, user_input=None, error=None):
if device_info := await self.cloud.get_device_info(device_id):
self.found_device[CONF_NAME] = device_info.get("name")
self.found_device[CONF_SUBTYPE] = device_info.get("model_number")
else:
return await self.async_step_auto(error="login_failed")
if device.get(CONF_PROTOCOL) == 3:
if self.account[CONF_SERVER] == "美的美居":
_LOGGER.debug(f"Try to get the Token and the Key use the preset MSmartHome account")
Expand Down

0 comments on commit 9a179e1

Please sign in to comment.