From cf54b1730bd0dbe19ddf97629add542be92ef643 Mon Sep 17 00:00:00 2001 From: Israel Diaz Date: Fri, 3 Feb 2023 19:36:10 +0100 Subject: [PATCH] Update shell.py Fix problem with telnet shell of G2H. After adding this fix the component could reach and read the linked accesories --- custom_components/aqara_gateway/core/shell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/aqara_gateway/core/shell.py b/custom_components/aqara_gateway/core/shell.py index 3505e88..c0a05cd 100755 --- a/custom_components/aqara_gateway/core/shell.py +++ b/custom_components/aqara_gateway/core/shell.py @@ -203,6 +203,7 @@ def login(self): self.run_command(password) self.run_command("stty -echo") + self.read_until(b"/ # ", timeout=10) self._suffix = "# " @@ -251,4 +252,4 @@ def login(self): class TelnetShellG2HPro(TelnetShellG3): - pass \ No newline at end of file + pass