Skip to content

Commit 6a6dd9d

Browse files
committed
Fix default value of sensors object
It's a dict, not a list!
1 parent 916607b commit 6a6dd9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

relay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def query_spaceapi(endpoint: str) -> Optional[dict]:
2424
if 'api' not in data or 'space' not in data:
2525
print('Endpoint response does not look like a valid SpaceAPI object')
2626
sys.exit(2)
27-
return data.get('sensors', [])
27+
return data.get('sensors', {})
2828

2929

3030
def make_datapoint(name: str, value: float, tags: Dict[str, str]):

0 commit comments

Comments
 (0)