diff --git a/pygrocy/data_models/system.py b/pygrocy/data_models/system.py index 1471b1b..2b70c27 100644 --- a/pygrocy/data_models/system.py +++ b/pygrocy/data_models/system.py @@ -78,10 +78,12 @@ def __init__(self, system_config_dto: SystemConfigDto): self._locale = system_config_dto.locale self._currency = system_config_dto.currency - self._enabled_features = [] - for feature, value in system_config_dto.feature_flags.items(): - if bool(value): - self._enabled_features.append(feature) + self._enabled_features = [ + feature + for feature, value in system_config_dto.feature_flags.items() + if value + not in (False, "0") # The default is enabled, disabled can be False or "0" + ] @property def username(self) -> str: