From 8825e26b9cce473a9545862dfd2a2a3b602dc776 Mon Sep 17 00:00:00 2001 From: tal Date: Mon, 12 Jul 2021 13:38:09 +0300 Subject: [PATCH] Allow UART devices to be listed as well when using otii_get_devices. --- otii_tcp_client/otii.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otii_tcp_client/otii.py b/otii_tcp_client/otii.py index 7507c84..fe5281c 100644 --- a/otii_tcp_client/otii.py +++ b/otii_tcp_client/otii.py @@ -77,7 +77,7 @@ def get_devices(self): return [] device_objects = [] for device in response["data"]["devices"]: - if device["type"] == "Arc": + if device["type"] == "Arc" or device["type"] == "UART": device_object = arc.Arc(device, self.connection) device_objects.append(device_object) return device_objects