refactor: DBus interface includes bus instance
Updated `InterfaceRevpiConfig` to require a bus parameter, ensuring proper initialization. Introduced a constructor in `DbusInterface` to store the bus instance. Signed-off-by: Sven Sager <s.sager@kunbus.com>
This commit is contained in:
@@ -26,7 +26,9 @@ class InterfacePiControl(DbusInterface):
|
||||
|
||||
NotifyDriverReset = signal()
|
||||
|
||||
def __init__(self, picontrol_device: str, config_rsc: str):
|
||||
def __init__(self, bus, picontrol_device: str, config_rsc: str):
|
||||
super().__init__(bus)
|
||||
|
||||
self.picontrol_device = picontrol_device
|
||||
self.config_rsc = config_rsc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user