diff --git a/ovos_workshop/decorators/layers.py b/ovos_workshop/decorators/layers.py index 9fda357..f9f17fe 100644 --- a/ovos_workshop/decorators/layers.py +++ b/ovos_workshop/decorators/layers.py @@ -211,7 +211,8 @@ def activate_layer(self, layer_name: str): if layer_name not in self._active_layers: self._active_layers.append(layer_name) for intent in self._layers[layer_name]: - self.skill.enable_intent(intent) + intent_name = intent.split(f"{self.skill_id}:")[-1] + self.skill.enable_intent(intent_name) else: LOG.debug("no layer named: " + layer_name) @@ -223,7 +224,8 @@ def deactivate_layer(self, layer_name: str): if layer_name in self._active_layers: self._active_layers.remove(layer_name) for intent in self._layers[layer_name]: - self.skill.disable_intent(intent) + intent_name = intent.split(f"{self.skill_id}:")[-1] + self.skill.disable_intent(intent_name) else: LOG.debug("no layer named: " + layer_name)