From bd86a0ac3b1f47306a9814cfd11c0374a61a33ab Mon Sep 17 00:00:00 2001 From: Aliasghar Dashkhaneh Date: Sun, 5 Mar 2023 22:15:54 +0330 Subject: [PATCH] Update __init__.py (#4514) In some Sony remote codes, the **data** is more than 16 bits. --- esphome/components/remote_base/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/remote_base/__init__.py b/esphome/components/remote_base/__init__.py index c5c8921e20..4d9196c9c5 100644 --- a/esphome/components/remote_base/__init__.py +++ b/esphome/components/remote_base/__init__.py @@ -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_))