From df758c08063888fe456b90ee4cc8307ebfb8d125 Mon Sep 17 00:00:00 2001 From: miro Date: Mon, 21 Oct 2024 13:49:41 +0100 Subject: [PATCH] fix:phal config loading --- ovos_plugin_manager/templates/phal.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ovos_plugin_manager/templates/phal.py b/ovos_plugin_manager/templates/phal.py index 4ec7fa53..435d2788 100644 --- a/ovos_plugin_manager/templates/phal.py +++ b/ovos_plugin_manager/templates/phal.py @@ -8,8 +8,6 @@ from ovos_bus_client.util import get_mycroft_bus from ovos_utils.process_utils import RuntimeRequirements -from ovos_plugin_manager.utils.config import get_plugin_config - class PHALValidator: @staticmethod @@ -37,8 +35,7 @@ def __init__(self, bus=None, name="", config=None): super().__init__(daemon=True) self.config_core = Configuration() name = name or camel_case_split(self.__class__.__name__).replace(" ", "-").lower() - self.config = config or get_plugin_config(self.config_core, - "PHAL", name) + self.config = config or self.config_core.get("PHAL", {}).get(name, {}) self._mouth_events = False self._running = False self.bus = bus or get_mycroft_bus()