mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-06-28 12:56:29 +00:00
small down the footprint
This commit is contained in:
parent
69142b6fb0
commit
f1237f124f
@ -74,9 +74,9 @@ class DBus(object):
|
|||||||
|
|
||||||
# Read available methods
|
# Read available methods
|
||||||
for interface in xml.findall("/node/interface"):
|
for interface in xml.findall("/node/interface"):
|
||||||
methods = []
|
methods = set()
|
||||||
for method in interface.findall("/method"):
|
for method in interface.findall("/method"):
|
||||||
methods.append(method.get('name'))
|
methods.add(method.get('name'))
|
||||||
self.data[interface.get('name')] = methods
|
self.data[interface.get('name')] = methods
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user