Init sub-components using global var. (#17220)
This commit is contained in:
parent
2de1193fd9
commit
e922dd10ba
6 changed files with 13 additions and 138 deletions
|
@ -59,7 +59,8 @@ async def test_update_alarm_device(hass):
|
|||
return_value=mock_coro(True)):
|
||||
assert await async_setup_component(hass, 'spc', config) is True
|
||||
|
||||
await hass.async_block_till_done()
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = 'alarm_control_panel.house'
|
||||
|
||||
assert hass.states.get(entity_id).state == STATE_ALARM_ARMED_AWAY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue