fix: need to compare with serialized value (for enums)

This commit is contained in:
Mose Müller 2024-08-05 15:09:40 +02:00
parent 12d7ddab08
commit 743c18bdd7

View File

@ -53,7 +53,7 @@ class DataServiceObserver(PropertyObserver):
cached_value = cached_value_dict.get("value")
if (
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)