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:
committed by
Paulus Schoutsen
parent
22d3cf4117
commit
b9923ca109
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user