Skip to content

Commit

Permalink
fix: only protocol v3 device should run authenticate (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwentao authored Aug 15, 2024
1 parent 184d1fa commit acd7d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ async def async_step_manually(
)
if dm.connect():
try:
if user_input[CONF_PROTOCOL] != ProtocolVersion.V3:
if user_input[CONF_PROTOCOL] == ProtocolVersion.V3:
dm.authenticate()
except SocketException:
_LOGGER.exception("Socket closed.")
Expand Down

0 comments on commit acd7d63

Please sign in to comment.