diff --git a/neon_utils/skills/neon_skill.py b/neon_utils/skills/neon_skill.py index b35ceedf..c6ebf12d 100644 --- a/neon_utils/skills/neon_skill.py +++ b/neon_utils/skills/neon_skill.py @@ -892,3 +892,14 @@ def init_dialog(self, root_directory: Optional[str] = None): """ log_deprecation("Use `load_dialog_files`", "2.0.0") self.load_dialog_files(root_directory) + + def add_event(self, name: str, handler: callable, + handler_info: Optional[str] = None, once: bool = False, + speak_errors: bool = True): + # TODO: Remove with ovos-workshop==0.0.13 + if handler_info == "mycroft.skill.handler" and \ + self.bus.emitter.listeners(name): + LOG.warning(f"Not re-registering intent handler {name}") + return + BaseSkill.add_event(self, name, handler, handler_info, once, + speak_errors)