Add ability to ignore heos discovery (#34653)
* Add ability to ignore heos discovery * Fetch player_id, update tests * Handle failure state * Update tests as there are two players in the mock now * Adjust and add more tests * Strip out player id lookup * reverts per review * one more revert
This commit is contained in:
1 parent
cf585babbe
commit
d1be3c8268
4 files changed
+54
-4
No files matched your search
@@ -31,6 +31,7 @@ async def test_async_setup_creates_entry(hass, config):
|
||||
entry = entries[0]
|
||||
assert entry.title == "Controller (127.0.0.1)"
|
||||
assert entry.data == {CONF_HOST: "127.0.0.1"}
|
||||
assert entry.unique_id == DOMAIN
|
||||
|
||||
|
||||
async def test_async_setup_updates_entry(hass, config_entry, config, controller):
|
||||
@@ -44,6 +45,7 @@ async def test_async_setup_updates_entry(hass, config_entry, config, controller)
|
||||
entry = entries[0]
|
||||
assert entry.title == "Controller (127.0.0.2)"
|
||||
assert entry.data == {CONF_HOST: "127.0.0.2"}
|
||||
assert entry.unique_id == DOMAIN
|
||||
|
||||
|
||||
async def test_async_setup_returns_true(hass, config_entry, config):
|
||||
|
||||
Reference in new issue
Block a user