Init sub-components using global var. (#17220)

This commit is contained in:
Martin Berg authored and Paulus Schoutsen committed 2018-10-07 23:30:09 +02:00
1 parent 2de1193fd9
commit e922dd10ba
6 files changed
+13 -138

No files matched your search

+2 -1
View File
@@ -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