Fix crash of Rfxtrx component when using config option fire_event
This commit is contained in:
parent
4a504a9f03
commit
7b1ec418f2
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue