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

This commit is contained in:
Martin Berg authored and Paulus Schoutsen committed 2018-10-07 23:33:40 +02:00
1 parent 7369af0639
commit 5fcea074c4
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