diff --git a/labgrid/driver/powerdriver.py b/labgrid/driver/powerdriver.py index a59b93118..1e0befc85 100644 --- a/labgrid/driver/powerdriver.py +++ b/labgrid/driver/powerdriver.py @@ -396,22 +396,19 @@ def on_activate(self): def on(self): r = self._requests.get(self._build_url('on')) r.raise_for_status() - time.sleep(1) # give pdudaemon some time to execute the request @Driver.check_active @step() def off(self): r = self._requests.get(self._build_url('off')) r.raise_for_status() - time.sleep(1) # give pdudaemon some time to execute the request @Driver.check_active @step() def cycle(self): r = self._requests.get(self._build_url('reboot')) r.raise_for_status() - time.sleep(self.delay + 1) # give pdudaemon some time to execute the request @Driver.check_active def get(self): - return None + raise NotImplementedError("pdudaemon does not support retrieving the port's state")