Skip to content

Commit

Permalink
fix:phal config loading (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Oct 21, 2024
1 parent d2d7646 commit 4336adf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ovos_plugin_manager/templates/phal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 4336adf

Please sign in to comment.