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 Oct 23, 2022
1 parent 05e2718 commit 8e6120b
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 = '{}:tracker'.format(self.skill_id)
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 8e6120b

Please sign in to comment.