Update __init__.py (#4514)

In some Sony remote codes, the **data** is more than 16 bits.
This commit is contained in:
Aliasghar Dashkhaneh 2023-03-05 22:15:54 +03:30 committed by GitHub
parent df3f13ded8
commit bd86a0ac3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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_))