1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Met, check for existing location (#26400)

This commit is contained in:
Daniel Høyer Iversen
2019-09-04 09:13:17 +03:00
committed by Paulus Schoutsen
parent 22d3cf4117
commit b9923ca109
4 changed files with 18 additions and 8 deletions

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 = {