mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-02-06 18:58:41 +01:00
client: updates proxy._service_representation every time the client connects
This commit is contained in:
@@ -240,12 +240,11 @@ class Client:
|
|||||||
self.proxy, serialized_object=serialized_object
|
self.proxy, serialized_object=serialized_object
|
||||||
)
|
)
|
||||||
serialized_object["type"] = "DeviceConnection"
|
serialized_object["type"] = "DeviceConnection"
|
||||||
if self.proxy._service_representation is not None:
|
# need to use object.__setattr__ to not trigger an observer notification
|
||||||
# need to use object.__setattr__ to not trigger an observer notification
|
object.__setattr__(self.proxy, "_service_representation", serialized_object)
|
||||||
object.__setattr__(self.proxy, "_service_representation", serialized_object)
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
self.proxy._service_representation = serialized_object # type: ignore
|
self.proxy._service_representation = serialized_object # type: ignore
|
||||||
self.proxy._notify_changed("", self.proxy)
|
self.proxy._notify_changed("", self.proxy)
|
||||||
self.proxy._connected = True
|
self.proxy._connected = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user