[htu21d] Fix set_heater action reading wrong config key (#15378)

This commit is contained in:
Jonathan Swoboda
2026-04-02 09:25:54 -10:00
committed by GitHub
parent 2f405fd96f
commit 37b33f62de
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -118,6 +118,6 @@ async def set_heater_level_to_code(config, action_id, template_arg, args):
async def set_heater_to_code(config, action_id, template_arg, args):
var = cg.new_Pvariable(action_id, template_arg)
await cg.register_parented(var, config[CONF_ID])
status_ = await cg.templatable(config[CONF_LEVEL], args, bool)
status_ = await cg.templatable(config[CONF_STATUS], args, bool)
cg.add(var.set_status(status_))
return var