From 6efb6ba60a716028082caa0020cb9ba1813c2a29 Mon Sep 17 00:00:00 2001 From: Peter Holloway Date: Thu, 29 Jan 2026 14:53:53 +0000 Subject: [PATCH] Deprecate DodalSource and DeviceSource --- src/blueapi/core/context.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/blueapi/core/context.py b/src/blueapi/core/context.py index 63a2965d0e..9bf29aec3d 100644 --- a/src/blueapi/core/context.py +++ b/src/blueapi/core/context.py @@ -213,11 +213,19 @@ def with_config(self, config: EnvironmentConfig) -> None: self.with_plan_module(mod) case DeviceSource(): LOGGER.info("Including devices from %s", source.module) + LOGGER.warning( + "'devices' environment kind is deprecated - please convert " + "configuration to use deviceManager" + ) self.with_device_module(mod) case DodalSource(mock=mock): LOGGER.info( "Including devices from 'dodal' source %s", source.module ) + LOGGER.warning( + "'dodal' environment kind is deprecated - please convert " + "configuration to use deviceManager" + ) self.with_dodal_module(mod, mock=mock) case DeviceManagerSource(mock=mock, name=name): LOGGER.info(