Fix crash of Rfxtrx component when using config option fire_event

This commit is contained in:
root 2016-03-30 16:19:44 +02:00
parent 4a504a9f03
commit 7b1ec418f2
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
rfxtrx.RFX_DEVICES[device_id].hass.bus.fire(
EVENT_BUTTON_PRESSED, {
ATTR_ENTITY_ID:
rfxtrx.RFX_DEVICES[device_id].device_id,
rfxtrx.RFX_DEVICES[device_id].entity_id,
ATTR_STATE: event.values['Command'].lower()
}
)