Met, check for existing location (#26400)

This commit is contained in:
Daniel Høyer Iversen authored and Paulus Schoutsen committed 2019-09-03 23:20:15 -07:00
1 parent d4905477b8
commit 93e4cd6bb2
4 files changed
+18 -8

No files matched your search

+3 -1
View File
@@ -102,7 +102,7 @@ async def test_flow_entry_created_from_user_input():
async def test_flow_entry_config_entry_already_exists():
"""Test that create data from user input and config_entry already exists.
Test when the form should show when user puts existing name
Test when the form should show when user puts existing location
in the config gui. Then the form should show with error
"""
hass = Mock()
@@ -112,6 +112,8 @@ async def test_flow_entry_config_entry_already_exists():
first_entry = MockConfigEntry(domain="met")
first_entry.data["name"] = "home"
first_entry.data[CONF_LONGITUDE] = "0"
first_entry.data[CONF_LATITUDE] = "0"
first_entry.add_to_hass(hass)
test_data = {