Use reference strings in Synology_DSM (#41333)
* Update strings.json * Update config_flow.py * Update test_config_flow.py
This commit is contained in:
1 parent
46b2c776db
commit
0460166c7c
3 files changed
+8
-8
No files matched your search
@@ -290,7 +290,7 @@ async def test_login_failed(hass: HomeAssistantType, service: MagicMock):
|
||||
data={CONF_HOST: HOST, CONF_USERNAME: USERNAME, CONF_PASSWORD: PASSWORD},
|
||||
)
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_FORM
|
||||
assert result["errors"] == {CONF_USERNAME: "login"}
|
||||
assert result["errors"] == {CONF_USERNAME: "invalid_auth"}
|
||||
|
||||
|
||||
async def test_connection_failed(hass: HomeAssistantType, service: MagicMock):
|
||||
@@ -306,7 +306,7 @@ async def test_connection_failed(hass: HomeAssistantType, service: MagicMock):
|
||||
)
|
||||
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_FORM
|
||||
assert result["errors"] == {CONF_HOST: "connection"}
|
||||
assert result["errors"] == {CONF_HOST: "cannot_connect"}
|
||||
|
||||
|
||||
async def test_unknown_failed(hass: HomeAssistantType, service: MagicMock):
|
||||
|
||||
Reference in new issue
Block a user