From 69ccb7dde7ef0ba865ae087cfa82635794d893b0 Mon Sep 17 00:00:00 2001 From: Alex X Date: Sat, 6 Apr 2024 05:57:52 +0300 Subject: [PATCH] Fix open_telnet command for fw 1.4.6_0043 --- custom_components/xiaomi_gateway3/core/core_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_gateway3/core/core_utils.py b/custom_components/xiaomi_gateway3/core/core_utils.py index 27888e9d..eadf93f3 100644 --- a/custom_components/xiaomi_gateway3/core/core_utils.py +++ b/custom_components/xiaomi_gateway3/core/core_utils.py @@ -67,7 +67,7 @@ async def enable_telnet(host: str, token: str, key: str = None) -> str: fwver: str = miio_info.get("fw_ver") # 2. Send different telnet cmd based on gateway model and firmware if model == "lumi.gateway.mgl03": - if fwver < "1.4.7": + if fwver < "1.4.6_0043": methods = ["enable_telnet_service"] elif fwver < "1.5.5": methods = ["set_ip_info"]