From 6f40a8cc4ee7f3f128da23fa103e8215db081182 Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 18 Sep 2024 13:31:57 +0200 Subject: [PATCH] Fix --- components/tc_bus/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tc_bus/__init__.py b/components/tc_bus/__init__.py index 5fe481a4..48d7aaf6 100644 --- a/components/tc_bus/__init__.py +++ b/components/tc_bus/__init__.py @@ -208,7 +208,7 @@ async def tc_bus_set_programming_mode_to_code(config, action_id, template_args, parent = await cg.get_variable(config[CONF_ID]) var = cg.new_Pvariable(action_id, template_args, parent) - programming_mode_template_ = await cg.templatable(config[CONF_TYPE], args, cg.bool_) + programming_mode_template_ = await cg.templatable(config[CONF_PROGRAMMING_MODE], args, cg.bool_) cg.add(var.set_programming_mode(programming_mode_template_)) return var \ No newline at end of file