We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e337e4 commit 1cd06e1Copy full SHA for 1cd06e1
opensensor/collection_apis.py
@@ -583,6 +583,10 @@ def sample_and_paginate_collection(
583
relays = []
584
for relay in item["relays"]:
585
try:
586
+ if isinstance(relay, str):
587
+ relay = json.loads(relay)
588
+ if isinstance(relay, list):
589
+ relay = relay[0]
590
relays.append(RelayStatus(**relay))
591
except Exception as e:
592
logger.error(f"Error creating RelayStatus: {e}")
0 commit comments