Use all new helper functions (#31278)
This commit is contained in:
1 parent
424e15c7a7
commit
111fc1fa8e
2 files changed
+27
-47
No files matched your search
@@ -205,7 +205,7 @@ async def test_manual_configuration_update_configuration(hass, aioclient_mock):
|
||||
)
|
||||
|
||||
assert result["type"] == "abort"
|
||||
assert result["reason"] == "updated_instance"
|
||||
assert result["reason"] == "already_configured"
|
||||
assert gateway.config_entry.data[config_flow.CONF_HOST] == "2.3.4.5"
|
||||
|
||||
|
||||
@@ -382,7 +382,7 @@ async def test_ssdp_discovery_update_configuration(hass):
|
||||
)
|
||||
|
||||
assert result["type"] == "abort"
|
||||
assert result["reason"] == "updated_instance"
|
||||
assert result["reason"] == "already_configured"
|
||||
assert gateway.config_entry.data[config_flow.CONF_HOST] == "2.3.4.5"
|
||||
|
||||
|
||||
@@ -469,7 +469,7 @@ async def test_hassio_discovery_update_configuration(hass):
|
||||
)
|
||||
|
||||
assert result["type"] == "abort"
|
||||
assert result["reason"] == "updated_instance"
|
||||
assert result["reason"] == "already_configured"
|
||||
assert gateway.config_entry.data[config_flow.CONF_HOST] == "2.3.4.5"
|
||||
assert gateway.config_entry.data[config_flow.CONF_PORT] == 8080
|
||||
assert gateway.config_entry.data[config_flow.CONF_API_KEY] == "updated"
|
||||
|
||||
Reference in new issue
Block a user