mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-08 14:30:41 +02:00
fix: need to compare with serialized value (for enums)
This commit is contained in:
parent
12d7ddab08
commit
743c18bdd7
@ -53,7 +53,7 @@ class DataServiceObserver(PropertyObserver):
|
|||||||
cached_value = cached_value_dict.get("value")
|
cached_value = cached_value_dict.get("value")
|
||||||
if (
|
if (
|
||||||
all(part[0] != "_" for part in full_access_path.split("."))
|
all(part[0] != "_" for part in full_access_path.split("."))
|
||||||
and cached_value != value
|
and cached_value != dump(value)["value"]
|
||||||
):
|
):
|
||||||
logger.debug("'%s' changed to '%s'", full_access_path, value)
|
logger.debug("'%s' changed to '%s'", full_access_path, value)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user