Skip to content

Commit

Permalink
Fix issue 104 @zeronounours
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony763 committed Dec 20, 2022
1 parent c8853f9 commit 1fa049c
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 @@ -104,7 +104,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 1fa049c

Please sign in to comment.