From 1ccab50d3207c5d8033121fbbb7842abbc55d9a7 Mon Sep 17 00:00:00 2001 From: Bekir Altindal Date: Fri, 2 Jan 2026 11:40:24 +0100 Subject: [PATCH] fix(Component): add missing parameter in SimulationException calls. Signed-off-by: Bekir Altindal --- villas/controller/component.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/villas/controller/component.py b/villas/controller/component.py index 8ee13e8..65dd204 100644 --- a/villas/controller/component.py +++ b/villas/controller/component.py @@ -245,19 +245,19 @@ def ping(self, payload): self.publish_status() def start(self, payload): - raise SimulationException('The component can not be started') + raise SimulationException(self, 'The component can not be started') def stop(self, payload): - raise SimulationException('The component can not be stopped') + raise SimulationException(self, 'The component can not be stopped') def pause(self, payload): - raise SimulationException('The component can not be paused') + raise SimulationException(self, 'The component can not be paused') def resume(self, payload): - raise SimulationException('The component can not be resumed') + raise SimulationException(self, 'The component can not be resumed') def shutdown(self, payload): - raise SimulationException('The component can not be shut down') + raise SimulationException(self, 'The component can not be shut down') def reset(self, payload): self.started = time.time()