fix(service config): fix service config retrieval for legacy class BECDeviceBase

This commit is contained in:
2025-08-22 13:24:51 +02:00
committed by Klaus Wakonig
parent 43f0c9b1a1
commit 5f6caf5d44

View File

@@ -364,7 +364,7 @@ class BECDeviceBase(Device):
from bec_lib.bec_service import SERVICE_CONFIG
if SERVICE_CONFIG:
self.service_cfg = SERVICE_CONFIG.config["service_config"]["file_writer"]
self.service_cfg = SERVICE_CONFIG.model.file_writer.model_dump()
return
self.service_cfg = {"base_path": os.path.abspath(".")}