Use reference strings in Smappee (#41337)

* Update strings.json

* Update strings.json

* Update config_flow.py

* Update test_config_flow.py
This commit is contained in:
SNoof85 authored and GitHub committed 2020-10-06 16:51:36 +02:00
1 parent d9e48b483b
commit 8b2df5bf99
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -72,7 +72,7 @@ async def test_show_zeroconf_connection_error_form(hass):
)
assert result["type"] == data_entry_flow.RESULT_TYPE_ABORT
assert result["reason"] == "connection_error"
assert result["reason"] == "cannot_connect"
assert len(hass.config_entries.async_entries(DOMAIN)) == 0
@@ -95,7 +95,7 @@ async def test_connection_error(hass):
result = await hass.config_entries.flow.async_configure(
result["flow_id"], {"host": "1.2.3.4"}
)
assert result["reason"] == "connection_error"
assert result["reason"] == "cannot_connect"
assert result["type"] == data_entry_flow.RESULT_TYPE_ABORT