Skip to content

Commit 4887783

Browse files
committed
Update relays condition to be an array returend
1 parent c2ec1b6 commit 4887783

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

opensensor/collection_apis.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import json
21
import logging
32
from datetime import datetime, timedelta, timezone
43
from typing import Generic, List, Optional, Type, TypeVar, get_args, get_origin
@@ -580,7 +579,6 @@ def sample_and_paginate_collection(
580579
relays = []
581580
for item in raw_data:
582581
for relay in item["relays"]:
583-
relay = json.loads(relay)
584582
relays.append(RelayStatus(**relay))
585583
relay_board = RelayBoard(relays=relays)
586584
data.append(relay_board)

0 commit comments

Comments
 (0)