fix(device base): added missing property to BECDeviceBase

This commit is contained in:
wakonig_k 2024-10-31 15:58:25 +01:00 committed by appel_c
parent 2e8ddbb1ad
commit cc0e26a91a

View File

@ -125,6 +125,16 @@ class BECDeviceBase:
return root
root = root.parent
@property
def dotted_name(self):
"""Return the dotted name"""
names = []
obj = self
while obj.parent is not None:
names.append(obj.name)
obj = obj.parent
return ".".join(names[::-1])
@property
def hints(self) -> dict:
"""hints property"""