diff --git a/components/tc_bus/__init__.py b/components/tc_bus/__init__.py index 5fe481a..48d7aaf 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