Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 14, 2024
1 parent 3364662 commit 68d829f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()]

Expand Down

0 comments on commit 68d829f

Please sign in to comment.