Merge pull request #79 from tiqi-group/feat/improves_state_manager_debug_messages

fix: improves debug message for properties (load_state decorator)
This commit is contained in:
Mose Müller 2023-12-07 11:44:46 +01:00 committed by GitHub
commit a5fddf7e45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,11 +150,9 @@ class StateManager:
value, value_type = nested_json_dict["value"], nested_json_dict["type"]
class_attr_value_type = nested_class_dict.get("type", None)
if (
class_attr_value_type == value_type
and self.__is_loadable_state_attribute(path)
):
self.set_service_attribute_value_by_path(path, value)
if class_attr_value_type == value_type:
if self.__is_loadable_state_attribute(path):
self.set_service_attribute_value_by_path(path, value)
else:
logger.info(
"Attribute type of '%s' changed from '%s' to "