From 2d9d207848a8b1afaff950cbc30cd11fed22a93a Mon Sep 17 00:00:00 2001 From: Christ van Willegen Date: Fri, 24 May 2024 12:50:19 +0200 Subject: [PATCH] Fix parameter type for code generation. --- esphome/components/stepper/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/stepper/__init__.py b/esphome/components/stepper/__init__.py index f4f5a937cb..d1a3bf2be5 100644 --- a/esphome/components/stepper/__init__.py +++ b/esphome/components/stepper/__init__.py @@ -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): paren = await cg.get_variable(config[CONF_ID]) 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_)) return var