mirror of
https://github.com/esphome/esphome.git
synced 2025-01-08 05:41:44 +01:00
Fix parameter type for code generation.
This commit is contained in:
parent
4e99433ae4
commit
2d9d207848
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ async def stepper_set_deceleration_to_code(config, action_id, template_arg, args
|
||||||
async def stepper_set_rotation_to_code(config, action_id, template_arg, args):
|
async def stepper_set_rotation_to_code(config, action_id, template_arg, args):
|
||||||
paren = await cg.get_variable(config[CONF_ID])
|
paren = await cg.get_variable(config[CONF_ID])
|
||||||
var = cg.new_Pvariable(action_id, template_arg, paren)
|
var = cg.new_Pvariable(action_id, template_arg, paren)
|
||||||
template_ = await cg.templatable(config[CONF_ROTATION], args, cg.string_)
|
template_ = await cg.templatable(config[CONF_ROTATION], args, cg.int32)
|
||||||
cg.add(var.set_rotation(template_))
|
cg.add(var.set_rotation(template_))
|
||||||
return var
|
return var
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue