mirror of
https://github.com/esphome/esphome.git
synced 2024-11-13 02:37:47 +01:00
fix aeha data template (#5231)
Co-authored-by: Samuel Sieb <samuel@sieb.net>
This commit is contained in:
parent
a84365659b
commit
283d9a0f5f
1 changed files with 4 additions and 1 deletions
|
@ -1569,4 +1569,7 @@ def aeha_dumper(var, config):
|
||||||
async def aeha_action(var, config, args):
|
async def aeha_action(var, config, args):
|
||||||
template_ = await cg.templatable(config[CONF_ADDRESS], args, cg.uint16)
|
template_ = await cg.templatable(config[CONF_ADDRESS], args, cg.uint16)
|
||||||
cg.add(var.set_address(template_))
|
cg.add(var.set_address(template_))
|
||||||
cg.add(var.set_data(config[CONF_DATA]))
|
template_ = await cg.templatable(
|
||||||
|
config[CONF_DATA], args, cg.std_vector.template(cg.uint8)
|
||||||
|
)
|
||||||
|
cg.add(var.set_data(template_))
|
||||||
|
|
Loading…
Reference in a new issue