From 89cea8c2412ad9f183c92a07f4f574f1ff269dec Mon Sep 17 00:00:00 2001 From: Bishoy Hany <167128903+Bishoy-at-pieces@users.noreply.github.com> Date: Sun, 26 May 2024 20:52:13 +0300 Subject: [PATCH 1/4] fix version check print statment --- api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.py b/api.py index 15c04d0..f4201bc 100644 --- a/api.py +++ b/api.py @@ -66,11 +66,11 @@ def version_check(): print_version_details(pieces_os_version, __version__) return False elif os_version_parsed < min_version_parsed: - print("Please update your Pieces OS. It is not compatible with the current cli-agent version") + print("Please update your Pieces OS. It is not compatible with the current plugin version") print() print_version_details(pieces_os_version, __version__) return False return True def print_version_details(pieces_os_version, __version__): - print(f"Pieces os version: {pieces_os_version}\nPlugin version: {__version__}") \ No newline at end of file + print(f"Pieces os version: {pieces_os_version}\nPlugin version: {__version__}") From 54453f17cfe4566fe5a748c599dc9bfb2d2375dd Mon Sep 17 00:00:00 2001 From: Bishoy Hany <167128903+Bishoy-at-pieces@users.noreply.github.com> Date: Mon, 27 May 2024 12:59:56 +0300 Subject: [PATCH 2/4] Update api.py --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.py b/api.py index f4201bc..07619d2 100644 --- a/api.py +++ b/api.py @@ -66,7 +66,7 @@ def version_check(): print_version_details(pieces_os_version, __version__) return False elif os_version_parsed < min_version_parsed: - print("Please update your Pieces OS. It is not compatible with the current plugin version") + print("Please update your Pieces OS. It is not compatible with the current package version") print() print_version_details(pieces_os_version, __version__) return False From cc7258859c68ddfd9775894bdf0f2beea3835374 Mon Sep 17 00:00:00 2001 From: Bishoy Hany <167128903+Bishoy-at-pieces@users.noreply.github.com> Date: Mon, 27 May 2024 13:35:58 +0300 Subject: [PATCH 3/4] Update base_websocket.py --- base_websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_websocket.py b/base_websocket.py index fe0f3e1..197019d 100644 --- a/base_websocket.py +++ b/base_websocket.py @@ -63,6 +63,6 @@ def reconnect_all(cls): def reconnect(self): """Reconnect the websocket connection.""" - if not self.is_connected: + if not self.running: self.start() From e691feab2d16f1b2a12bce5fc5eca19867781945 Mon Sep 17 00:00:00 2001 From: Bishoy Hany <167128903+Bishoy-at-pieces@users.noreply.github.com> Date: Mon, 27 May 2024 16:21:17 +0300 Subject: [PATCH 4/4] fix missing classmethod --- base_websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_websocket.py b/base_websocket.py index 197019d..7eb7d9e 100644 --- a/base_websocket.py +++ b/base_websocket.py @@ -50,7 +50,7 @@ def close(self): self.ws.close() self.thread.join() self.running = False - + @classmethod def close_all(cls): for instance in instances: instance.close()