mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Switch tests to use hass objects instead of direct (#37530)
* Switch tests to use hass objects instead of direct * Make sure sensor update state * Add some initial binary sensor tests * Add initial binary sensor tests * Add tests for pt2262 * Add test for off delay
This commit is contained in:
@@ -2,5 +2,8 @@
|
||||
from homeassistant.components import rfxtrx
|
||||
|
||||
|
||||
async def _signal_event(hass, event):
|
||||
async def _signal_event(hass, packet_id):
|
||||
event = rfxtrx.get_rfx_object(packet_id)
|
||||
await hass.async_add_executor_job(rfxtrx.RECEIVED_EVT_SUBSCRIBERS[0], event)
|
||||
await hass.async_block_till_done()
|
||||
return event
|
||||
|
||||
Reference in New Issue
Block a user