From b5fbe47a234a20e1a3b2034df8bca3dd50acc89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alicia=20Boya=20Garc=C3=ADa?= Date: Sun, 16 Oct 2022 17:10:17 +0200 Subject: [PATCH] Fix return type of request_prov_data for dbus-next dbus-next methods are supposed to return lists, not tuples. I'd rather dbus-next allowed that... but that's beside the point. This patch fixes request_prov_data() in interfaces.py to add a missing conversion so that a type error is not thrown on return when marshalling the return type. --- bluetooth_mesh/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluetooth_mesh/interfaces.py b/bluetooth_mesh/interfaces.py index f91638ac..7c77fdaa 100644 --- a/bluetooth_mesh/interfaces.py +++ b/bluetooth_mesh/interfaces.py @@ -261,7 +261,7 @@ def scan_result(self, rssi: "n", data: "ay", options: "a{sv}"): @method(name="RequestProvData") def request_prov_data(self, count: "y") -> "qq": - return self.application.request_prov_data(count) + return list(self.application.request_prov_data(count)) @method(name="AddNodeComplete") def add_node_complete(self, uuid: "ay", unicast: "q", count: "y"):