Skip to content

Commit 09c021b

Browse files
committed
Fix Dashboard parsing of Block objects
1 parent 11bddac commit 09c021b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_IO/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _group_from_dict(cls, data):
136136
def _dashboard_from_dict(cls, data):
137137
params = {x: data.get(x, None) for x in cls._fields}
138138
# Parse the blocks if they're provided and generate block instances.
139-
params['blocks'] = tuple(map(Feed.from_dict, data.get('blocks', [])))
139+
params['blocks'] = tuple(map(Block.from_dict, data.get('blocks', [])))
140140
return cls(**params)
141141

142142

0 commit comments

Comments
 (0)