From acd7d635e63157ff806676990225a1460f77736f Mon Sep 17 00:00:00 2001 From: Hello World Date: Thu, 15 Aug 2024 19:45:03 +0800 Subject: [PATCH] fix: only protocol v3 device should run authenticate (#279) --- custom_components/midea_ac_lan/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/midea_ac_lan/config_flow.py b/custom_components/midea_ac_lan/config_flow.py index f7a202c..1ca7cb9 100644 --- a/custom_components/midea_ac_lan/config_flow.py +++ b/custom_components/midea_ac_lan/config_flow.py @@ -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.")