1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add Heos config flow (#22554)

* Add UI initiated config flow

* Fix alpha order
This commit is contained in:
Andrew Sayre
2019-03-30 08:52:17 -05:00
committed by GitHub
parent b6ac964df3
commit ecba87179f
7 changed files with 137 additions and 2 deletions

View File

@@ -45,6 +45,16 @@ async def test_async_setup_returns_true(hass, config_entry, config):
assert entries[0] == config_entry
async def test_async_setup_no_config_returns_true(hass, config_entry):
"""Test component setup updates entry from entry only."""
config_entry.add_to_hass(hass)
assert await async_setup_component(hass, DOMAIN, {})
await hass.async_block_till_done()
entries = hass.config_entries.async_entries(DOMAIN)
assert len(entries) == 1
assert entries[0] == config_entry
async def test_async_setup_entry_loads_platforms(
hass, config_entry, controller):
"""Test load connects to heos, retrieves players, and loads platforms."""