Skip to content

Commit

Permalink
Remove load_plugins override method to use OVOS implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jun 28, 2024
1 parent 796596c commit 3b45b95
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions neon_enclosure/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,6 @@ def start(self):
LOG.info(f"Started PHAL")
self.started.set()

def load_plugins(self):
for name, plug in find_phal_plugins().items():
LOG.info(f"Loading {name}")
config = self.user_config.get(name) or {}
try:
if hasattr(plug, "validator"):
enabled = plug.validator.validate(config)
else:
enabled = config.get("enabled")
except Exception as e:
LOG.exception(e)
enabled = False
if enabled:
try:
self.drivers[name] = plug(bus=self.bus, config=config)
LOG.info(f"PHAL plugin loaded: {name}")
except Exception:
LOG.exception(f"failed to load PHAL plugin: {name}")
continue

def shutdown(self):
LOG.info("Shutting Down")
try:
Expand Down

0 comments on commit 3b45b95

Please sign in to comment.