Add optional photo providers, layout studio and scoped integrations

This commit is contained in:
Pigway
2026-10-08 23:18:11 +08:00
parent 3643fae86a
commit 69a0841868
38 changed files with 2843 additions and 41 deletions
@@ -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: