Add optional photo providers, layout studio and scoped integrations
This commit is contained in:
@@ -15,6 +15,7 @@ class WidgetReader:
|
||||
self.rpc = OfficialRPC(token)
|
||||
self._robot_id = robot_id
|
||||
self.mock = mock
|
||||
self.mock_selection = 188
|
||||
self._cached = None
|
||||
self._cached_at = 0.0
|
||||
|
||||
@@ -37,7 +38,8 @@ class WidgetReader:
|
||||
source="mock",
|
||||
configured=True,
|
||||
catalog=catalog,
|
||||
current=catalog[0],
|
||||
current=next((x for x in catalog if x.id == self.mock_selection), None),
|
||||
status="OK" if self.mock_selection else "NO_WIDGET",
|
||||
current_verified=True,
|
||||
)
|
||||
if not self.rpc.authorized or self._robot_id is None:
|
||||
|
||||
Reference in New Issue
Block a user