diff --git a/esbo_etc/classes/config.py b/esbo_etc/classes/config.py index 3bdb4e8..445266f 100644 --- a/esbo_etc/classes/config.py +++ b/esbo_etc/classes/config.py @@ -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