mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 07:25:52 -05:00
Implement unload entry for rfxtrx integration (#38037)
* Implement unload entry * Change async_remove to remove * Pop data from hass.data * Change sequence order in unload * Dont unload internal when unload platforms fail
This commit is contained in:
@@ -6,7 +6,7 @@ async def _signal_event(hass, packet_id):
|
||||
event = rfxtrx.get_rfx_object(packet_id)
|
||||
|
||||
await hass.async_add_executor_job(
|
||||
hass.data[rfxtrx.DATA_RFXOBJECT].event_callback, event,
|
||||
hass.data[rfxtrx.DOMAIN][rfxtrx.DATA_RFXOBJECT].event_callback, event,
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in New Issue
Block a user