From 68d829fa87fd6466bd770eabdf45bf27fd46a631 Mon Sep 17 00:00:00 2001 From: miro Date: Thu, 14 Nov 2024 15:48:17 +0000 Subject: [PATCH] nits --- __init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index ad2c307..aee7673 100644 --- a/__init__.py +++ b/__init__.py @@ -253,7 +253,7 @@ def update_examples(self): if self.skill_info_api: examples = self.skill_info_api.skill_info_examples() elif self.settings.get("examples_enabled"): - for skill_id, data in self.skill_examples.items(): + for _skill_id, data in self.skill_examples.items(): examples += data.get(self.lang, []) if examples: @@ -474,7 +474,13 @@ def _load_skill_apis(self): LOG.error(f"Failed to import Info Skill: {e}") self.skill_info_api = None - def build_voice_applications_model(self): + def build_voice_applications_model(self) -> List[Dict[str, str]]: + """Build a list of voice applications for the GUI model. + + Returns: + List[Dict[str, str]]: List of application metadata containing + name, thumbnail path, and action event + """ return [{"name": skill_id, "thumbnail": data["icon"], "action": data["event"]} for skill_id, data in self.homescreen_apps.items()]