style(widgets): apply formatter to widget rebind files

This commit is contained in:
Developer
2026-06-22 18:22:18 +00:00
parent 10fd4ead4a
commit f6a86310cc
3 changed files with 6 additions and 12 deletions
@@ -1404,10 +1404,7 @@ class SettingsStore:
) -> dict[str, Any]:
current = self.get_widget(widget_id) if widget_id else None
widget_id = str(payload.get("id") or widget_id or uuid.uuid4().hex[:12]).strip() or uuid.uuid4().hex[:12]
service_id = (
str(payload.get("service_id") or (current or {}).get("service_id") or "").strip()
or None
)
service_id = str(payload.get("service_id") or (current or {}).get("service_id") or "").strip() or None
widget_kind = str(payload.get("widget_kind") or (current or {}).get("widget_kind", "")).strip()
title = str(payload.get("title") or (current or {}).get("title", "") or "").strip()
config = payload.get("config", (current or {}).get("config", {}))