From 8d01eee66dc05abf8d6ed967880e74d3d43f879d Mon Sep 17 00:00:00 2001 From: Sven Sager Date: Tue, 27 May 2025 14:18:13 +0200 Subject: [PATCH] feat(dbus): Update status change notification in feature toggle methods Added calls to `StatusChanged` in `Disable` and `Enable` methods to notify when a feature's state is updated. This ensures proper tracking and external communication of feature status changes. Signed-off-by: Sven Sager --- .../dbus_middleware1/system_config/interface_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/revpi_middleware/dbus_middleware1/system_config/interface_config.py b/src/revpi_middleware/dbus_middleware1/system_config/interface_config.py index fba099f..5a00f60 100644 --- a/src/revpi_middleware/dbus_middleware1/system_config/interface_config.py +++ b/src/revpi_middleware/dbus_middleware1/system_config/interface_config.py @@ -61,11 +61,13 @@ class InterfaceRevpiConfig(DbusInterface): """Disable the feature.""" feature_function = get_feature(feature) feature_function.function(ConfigActions.DISABLE, *feature_function.args) + self.StatusChanged(feature, False) def Enable(self, feature: str) -> None: """Enable the feature.""" feature_function = get_feature(feature) feature_function.function(ConfigActions.ENABLE, *feature_function.args) + self.StatusChanged(feature, True) def GetStatus(self, feature: str) -> bool: """Get feature status."""