Init function to Entry added

This commit is contained in:
Lukas Klass 2020-04-17 13:04:59 +02:00
parent df2c4f036f
commit d6712834e2

View File

@ -14,6 +14,10 @@ class Entry(object):
"""
val: Union[str, bool, u.Quantity]
def __init__(self, **kwargs):
for key, value in kwargs.items():
self.__setattr__(key, value)
def __call__(self):
return self.val if hasattr(self, "val") else None