From e7cfb5492ed53cf30866589388d54ad66775bf82 Mon Sep 17 00:00:00 2001 From: Samuel Sieb Date: Mon, 1 Aug 2022 22:09:17 -0700 Subject: [PATCH] Use correct struct members. (#3672) --- esphome/components/remote_base/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/remote_base/__init__.py b/esphome/components/remote_base/__init__.py index b4d538c096..5730cba1eb 100644 --- a/esphome/components/remote_base/__init__.py +++ b/esphome/components/remote_base/__init__.py @@ -744,7 +744,8 @@ def rc6_binary_sensor(var, config): var.set_data( cg.StructInitializer( RC6Data, - ("device", config[CONF_DEVICE]), + ("mode", 0), + ("toggle", 0), ("address", config[CONF_ADDRESS]), ("command", config[CONF_COMMAND]), )