mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-22 01:00:02 +02:00
avoids notifying server when updates are pushed from the server itself
This commit is contained in:
parent
d100bb5fea
commit
19b24f3060
@ -45,14 +45,14 @@ class Client(pydase.DataService):
|
|||||||
else:
|
else:
|
||||||
# need to change to avoid overwriting the proxy class
|
# need to change to avoid overwriting the proxy class
|
||||||
data["type"] = "DeviceConnection"
|
data["type"] = "DeviceConnection"
|
||||||
self.proxy._notify_changed("", loads(data))
|
super(pydase.DataService, self.proxy)._notify_changed("", loads(data))
|
||||||
|
|
||||||
@self._sio.event
|
@self._sio.event
|
||||||
def notify(data: NotifyDict) -> None:
|
def notify(data: NotifyDict) -> None:
|
||||||
# Notify the DataServiceObserver directly, not going through
|
# Notify the DataServiceObserver directly, not going through
|
||||||
# self._notify_changed as this would trigger the "update_value" event
|
# self._notify_changed as this would trigger the "update_value" event
|
||||||
super(pydase.DataService, self)._notify_changed(
|
super(pydase.DataService, self.proxy)._notify_changed(
|
||||||
f"proxy.{data['data']['full_access_path']}",
|
data["data"]["full_access_path"],
|
||||||
loads(data["data"]["value"]),
|
loads(data["data"]["value"]),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user