From 1fa049c1b8dcfdc0f54724e1f220e79c32d35627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=C3=ADn=20Skala?= Date: Sun, 23 Oct 2022 22:52:14 +0200 Subject: [PATCH] Fix issue 104 @zeronounours --- __init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 29798ef2..13cee624 100644 --- a/__init__.py +++ b/__init__.py @@ -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."""