Skip resources with no providers in STA intralink (#1793)

This commit is contained in:
Benjamin Webb
2024-08-20 02:42:11 -08:00
committed by GitHub
parent 08876b5843
commit 067b1587b9
+5
View File
@@ -119,6 +119,11 @@ class SensorThingsProvider(BaseProvider):
for (name, rs) in CONFIG['resources'].items():
pvs = rs.get('providers')
if pvs is None:
LOGGER.debug(f'Skipping collection: {name}')
continue
p = get_provider_default(pvs)
e = p.get('entity') or self._get_entity(p['data'])
if any([