adde abstract method to be able know if entity has children by a path key

This commit is contained in:
iLLiCiTiT 2021-12-16 15:46:45 +01:00
parent e0c48ec5c7
commit 16ae291386
8 changed files with 57 additions and 0 deletions

View file

@ -107,6 +107,9 @@ class DictConditionalEntity(ItemEntity):
for _key, _value in new_value.items():
self.non_gui_children[self.current_enum][_key].set(_value)
def has_child_with_key(self, key):
return key in self.keys()
def _item_initialization(self):
self._default_metadata = NOT_SET
self._studio_override_metadata = NOT_SET