From 19b24f30605acf6aaba406251eb725a759649b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Thu, 28 Mar 2024 18:37:11 +0100 Subject: [PATCH] avoids notifying server when updates are pushed from the server itself --- src/pydase/client/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pydase/client/client.py b/src/pydase/client/client.py index ca8e802..4cb87d0 100644 --- a/src/pydase/client/client.py +++ b/src/pydase/client/client.py @@ -45,14 +45,14 @@ class Client(pydase.DataService): else: # need to change to avoid overwriting the proxy class data["type"] = "DeviceConnection" - self.proxy._notify_changed("", loads(data)) + super(pydase.DataService, self.proxy)._notify_changed("", loads(data)) @self._sio.event def notify(data: NotifyDict) -> None: # Notify the DataServiceObserver directly, not going through # self._notify_changed as this would trigger the "update_value" event - super(pydase.DataService, self)._notify_changed( - f"proxy.{data['data']['full_access_path']}", + super(pydase.DataService, self.proxy)._notify_changed( + data["data"]["full_access_path"], loads(data["data"]["value"]), )