Skip to content

Commit

Permalink
Fix open_telnet command for fw 1.4.6_0043
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 6, 2024
1 parent d489b64 commit 69ccb7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_gateway3/core/core_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 69ccb7d

Please sign in to comment.