1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 06:38:17 +00:00

Fix raw remote receiver

This commit is contained in:
Otto Winter 2018-10-10 20:04:30 +02:00
parent f7671f0c90
commit 6ee89e3fa5
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -74,7 +74,7 @@ def receiver_base(full_config):
elif key == CONF_SONY:
return SonyReceiver.new(name, config[CONF_DATA], config[CONF_NBITS])
elif key == CONF_RAW:
data = ArrayInitializer(*config[CONF_RAW], multiline=False)
data = ArrayInitializer(*config, multiline=False)
return RawReceiver.new(name, data)
elif key == CONF_RC_SWITCH_RAW:
return RCSwitchRawReceiver.new(name, build_rc_switch_protocol(config[CONF_PROTOCOL]),