Dont disco unnecessary server items

This commit is contained in:
Philipp Hörist 2018-07-23 20:44:57 +02:00
parent ea34959b35
commit 6c4d9ff4c7
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ class Discovery:
def _server_items_received(self, from_, node, items):
log.info('Server items received')
for item in items:
if 'node' in item:
# Only disco components
continue
self.disco_info(item['jid'],
success_cb=self._server_items_info_received)