From 5b3ccd0d26d90d729e55d269433a6ffd1508a197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20P=C3=BCschel?= Date: Tue, 7 Jan 2025 09:31:54 +0100 Subject: [PATCH] labgrid/resource/remote: add missing sigrok channel_group parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the missing sigrok channel_group parameter to the Network variants of the sigrok resources. Fixes: d6c597380c43 ("driver/sigrokdriver: add channel-group parameter") Signed-off-by: Sven PĆ¼schel --- labgrid/resource/remote.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/labgrid/resource/remote.py b/labgrid/resource/remote.py index b8adb2524..a29e58ee8 100644 --- a/labgrid/resource/remote.py +++ b/labgrid/resource/remote.py @@ -186,6 +186,10 @@ class NetworkSigrokUSBDevice(RemoteUSBResource): default=None, validator=attr.validators.optional(attr.validators.instance_of(str)) ) + channel_group = attr.ib( + default=None, + validator=attr.validators.optional(attr.validators.instance_of(str)) + ) def __attrs_post_init__(self): self.timeout = 10.0 super().__attrs_post_init__() @@ -203,6 +207,10 @@ class NetworkSigrokUSBSerialDevice(RemoteUSBResource): default=None, validator=attr.validators.optional(attr.validators.instance_of(str)) ) + channel_group = attr.ib( + default=None, + validator=attr.validators.optional(attr.validators.instance_of(str)) + ) def __attrs_post_init__(self): self.timeout = 10.0 super().__attrs_post_init__()