From 6428e38ab94c15a2c904e75cc6404bb6d0394e04 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Sat, 8 Jun 2024 19:03:38 +0200 Subject: [PATCH] fix: removed BECConnector from rpc client interface --- bec_widgets/cli/client.py | 18 ------------------ bec_widgets/cli/generate_cli.py | 1 - 2 files changed, 19 deletions(-) diff --git a/bec_widgets/cli/client.py b/bec_widgets/cli/client.py index ceafd335..99515602 100644 --- a/bec_widgets/cli/client.py +++ b/bec_widgets/cli/client.py @@ -20,24 +20,6 @@ class Widgets(str, enum.Enum): WebsiteWidget = "WebsiteWidget" -class BECConnector(RPCBase): - @property - @rpc_call - def config_dict(self) -> "dict": - """ - Get the configuration of the widget. - - Returns: - dict: The configuration of the widget. - """ - - @rpc_call - def get_all_rpc(self) -> "dict": - """ - Get all registered RPC objects. - """ - - class BECCurve(RPCBase): @rpc_call def remove(self): diff --git a/bec_widgets/cli/generate_cli.py b/bec_widgets/cli/generate_cli.py index 4ae5d37c..bade6a25 100644 --- a/bec_widgets/cli/generate_cli.py +++ b/bec_widgets/cli/generate_cli.py @@ -198,7 +198,6 @@ def main(): client_path = os.path.join(current_path, "client.py") rpc_classes = ClientGenerator.get_rpc_classes("bec_widgets") - rpc_classes["connector_classes"].append(BECConnector) # Not sure if this is necessary rpc_classes["connector_classes"].sort(key=lambda x: x.__name__) generator = ClientGenerator()