mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Update __init__.py (#4514)
In some Sony remote codes, the **data** is more than 16 bits.
This commit is contained in:
parent
df3f13ded8
commit
bd86a0ac3b
1 changed files with 1 additions and 1 deletions
|
@ -713,7 +713,7 @@ def sony_dumper(var, config):
|
|||
|
||||
@register_action("sony", SonyAction, SONY_SCHEMA)
|
||||
async def sony_action(var, config, args):
|
||||
template_ = await cg.templatable(config[CONF_DATA], args, cg.uint16)
|
||||
template_ = await cg.templatable(config[CONF_DATA], args, cg.uint32)
|
||||
cg.add(var.set_data(template_))
|
||||
template_ = await cg.templatable(config[CONF_NBITS], args, cg.uint32)
|
||||
cg.add(var.set_nbits(template_))
|
||||
|
|
Loading…
Reference in a new issue