From 1306f7a8c7d56ecfe198f3c6d28f2d0b036792b7 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Sat, 17 May 2025 09:37:53 +0200 Subject: [PATCH] Berry remove imports from globals (#23429) --- .../tasmota_xdrv_driver/xdrv_52_7_berry_embedded.ino | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_52_7_berry_embedded.ino b/tasmota/tasmota_xdrv_driver/xdrv_52_7_berry_embedded.ino index e46f79f32..c891a62ee 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_52_7_berry_embedded.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_52_7_berry_embedded.ino @@ -32,7 +32,7 @@ const char be_berry_init_code[] = "import global " #ifdef USE_BERRY_PYTHON_COMPAT // enable python syntax compatibility mode - "import python_compat " + "do import python_compat end " // don't keep 'python_compat' in global namespace #endif "import cb " @@ -55,7 +55,7 @@ const char be_berry_init_code[] = #ifdef USE_AUTOCONF // autoconf - "import autoconf " + "do import autoconf end " #endif // USE_AUTOCONF #ifdef USE_LVGL @@ -80,11 +80,7 @@ const char be_berry_init_code[] = "import light " #endif // USE_LIGHT -#if defined(USE_EMULATION) && defined(USE_EMULATION_HUE) - "import hue_bridge " -#endif - - "import tapp " + "do import tapp end " // we don't need to keep `tapp` in the global namespace #ifdef USE_BERRY_DEBUG "import debug "