Skip to content

Commit

Permalink
format whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Jul 18, 2024
1 parent e0998f0 commit 26c459f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_io/adafruit_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def send_batch_data(self, feed_key: str, data_list: list):
validate_feed_key(feed_key)
if not isinstance(data_list, list) or data_list == []:
raise ValueError("Data must be a list of dicts or namedtuples")
if not isinstance(data_list[0], dict): # assume namedtuple
if not isinstance(data_list[0], dict): # assume namedtuple
data_list = type(data_list)((data._asdict() for data in data_list))
if not all("value" in data for data in data_list):
raise ValueError("Data list items must at least contain a 'value' key")
Expand Down

0 comments on commit 26c459f

Please sign in to comment.