Skip to content

Commit

Permalink
Fix issue 104 @zeronounours
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony763 authored and krisgesling committed Dec 22, 2022
1 parent 6cfacf5 commit 19c1b01
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ def _register_tracker_entities(self) -> None:

with open(self.tracker_file, 'w', encoding='utf8') as voc_file:
voc_file.write('\n'.join(entities))
self.register_entity_file(self.tracker_file)

# Workaround: If https://github.com/MycroftAI/mycroft-core/pull/3101
# will be merged, next two lines could be changed to proper usage
# self.register_entity_file(self.tracker_file)
name = f"{self.skill_id}:tracker"
self.intent_service.register_padatious_entity(name, self.tracker_file)

def initialize(self) -> None:
"""Initialize skill, set language and priority."""
Expand Down

0 comments on commit 19c1b01

Please sign in to comment.