Use correct struct members. (#3672)

This commit is contained in:
Samuel Sieb 2022-08-01 22:09:17 -07:00 committed by Jesse Hills
parent 50f32a3aa5
commit e5eaf7a3fe
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -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]),
)