added multidevice support

This commit is contained in:
Ayzen
2026-04-28 17:29:21 +03:00
parent 93c705a33b
commit 1ea2aabf87
37 changed files with 1860 additions and 138 deletions
@@ -2,7 +2,6 @@
import logging
from .device import LibreVNADevice
from .enums import (
HardwareFamily,
PacketType,
@@ -71,4 +70,14 @@ __all__ = [
"VNASweepSettings",
]
def __getattr__(name: str):
"""Load USB-backed device class only when native hardware access is requested."""
if name == "LibreVNADevice":
from .device import LibreVNADevice
return LibreVNADevice
raise AttributeError(name)
logging.getLogger(__name__).addHandler(logging.NullHandler())