Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions labgrid/driver/power/poe_netgear_plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

from urllib.parse import urlparse

from py_netgear_plus import NetgearSwitchConnector

from ..exception import ExecutionError


Expand Down Expand Up @@ -61,6 +59,8 @@ def power_set(host: str, _port: int, index: int, value: bool) -> None:
value: Whether the port should enable PoE output

"""
from py_netgear_plus import NetgearSwitchConnector

index = int(index)
netgear_port_number = index + 1

Expand Down Expand Up @@ -94,6 +94,8 @@ def power_get(host: str, _port: int, index: int) -> bool:
ExecutionError: In case the status dictionary contains unexpected PoE status values.

"""
from py_netgear_plus import NetgearSwitchConnector

index = int(index)
netgear_port_number = index + 1

Expand Down
Loading