Skip to content

Commit

Permalink
fix: usage_of_deprecated_method
Browse files Browse the repository at this point in the history
self.translate has been deprecated for a while and remove from ovos-workshop base class

similar to OpenVoiceOS/skill-ovos-date-time#56
  • Loading branch information
JarbasAl committed Nov 6, 2024
1 parent 854a571 commit bba1f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def handle_repeat_tts(self, message):
# replaces https://github.com/MatthewScholefield/skill-repeat-recent
sess = SessionManager.get(message)
if sess.session_id not in self.parrot_sessions:
utt = self.translate('nothing')
utt = self.resources.render_dialog('nothing')
else:
utt = self.parrot_sessions[sess.session_id]["prev_tts"]

Expand All @@ -76,7 +76,7 @@ def handle_repeat_stt(self, message):
# replaces https://github.com/MatthewScholefield/skill-repeat-recent
sess = SessionManager.get(message)
if sess.session_id not in self.parrot_sessions:
utt = self.translate('nothing')
utt = self.resources.render_dialog('nothing')
ts = 0
else:
utt = self.parrot_sessions[sess.session_id]["prev_stt"]
Expand Down

0 comments on commit bba1f62

Please sign in to comment.