From f1237f124f5dc35632fb142d506a540e146fd02a Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 22 Apr 2018 09:35:36 +0200 Subject: [PATCH] small down the footprint --- hassio/utils/gdbus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hassio/utils/gdbus.py b/hassio/utils/gdbus.py index efc50b4a9..b78245525 100644 --- a/hassio/utils/gdbus.py +++ b/hassio/utils/gdbus.py @@ -74,9 +74,9 @@ class DBus(object): # Read available methods for interface in xml.findall("/node/interface"): - methods = [] + methods = set() for method in interface.findall("/method"): - methods.append(method.get('name')) + methods.add(method.get('name')) self.data[interface.get('name')] = methods @staticmethod