|
|
@@ -45,7 +45,7 @@ async def test_init_entry(hass):
|
|
|
"""Test initialisation of the config flow."""
|
|
|
entry = MockConfigEntry(
|
|
|
domain=DOMAIN,
|
|
|
- version=2,
|
|
|
+ version=3,
|
|
|
title="test",
|
|
|
data={
|
|
|
CONF_DEVICE_ID: "deviceid",
|
|
|
@@ -309,7 +309,7 @@ async def test_flow_choose_entities_creates_config_entry(hass, bypass_setup):
|
|
|
user_input={CONF_NAME: "test", CONF_CLIMATE: True, CONF_LOCK: False},
|
|
|
)
|
|
|
expected = {
|
|
|
- "version": 2,
|
|
|
+ "version": 3,
|
|
|
"type": "create_entry",
|
|
|
"flow_id": ANY,
|
|
|
"handler": DOMAIN,
|
|
|
@@ -334,6 +334,7 @@ async def test_options_flow_init(hass):
|
|
|
"""Test config flow options."""
|
|
|
config_entry = MockConfigEntry(
|
|
|
domain=DOMAIN,
|
|
|
+ version=3,
|
|
|
unique_id="uniqueid",
|
|
|
data={
|
|
|
CONF_DEVICE_ID: "deviceid",
|
|
|
@@ -370,6 +371,7 @@ async def test_options_flow_modifies_config(mock_test, hass):
|
|
|
|
|
|
config_entry = MockConfigEntry(
|
|
|
domain=DOMAIN,
|
|
|
+ version=3,
|
|
|
unique_id="uniqueid",
|
|
|
data={
|
|
|
CONF_CLIMATE: True,
|
|
|
@@ -415,6 +417,7 @@ async def test_options_flow_fails_when_connection_fails(mock_test, hass):
|
|
|
|
|
|
config_entry = MockConfigEntry(
|
|
|
domain=DOMAIN,
|
|
|
+ version=3,
|
|
|
unique_id="uniqueid",
|
|
|
data={
|
|
|
CONF_DEVICE_ID: "deviceid",
|
|
|
@@ -452,6 +455,7 @@ async def test_options_flow_fails_when_config_is_missing(mock_test, hass):
|
|
|
|
|
|
config_entry = MockConfigEntry(
|
|
|
domain=DOMAIN,
|
|
|
+ version=3,
|
|
|
unique_id="uniqueid",
|
|
|
data={
|
|
|
CONF_DEVICE_ID: "deviceid",
|
|
|
@@ -478,6 +482,7 @@ async def test_async_setup_entry_for_dehumidifier(mock_setup, hass):
|
|
|
"""Test setting up based on a config entry. Repeats test_init_entry."""
|
|
|
config_entry = MockConfigEntry(
|
|
|
domain=DOMAIN,
|
|
|
+ version=3,
|
|
|
unique_id="uniqueid",
|
|
|
data={
|
|
|
CONF_CLIMATE: False,
|
|
|
@@ -500,6 +505,7 @@ async def test_async_setup_entry_for_switch(mock_device, hass):
|
|
|
"""Test setting up based on a config entry. Repeats test_init_entry."""
|
|
|
config_entry = MockConfigEntry(
|
|
|
domain=DOMAIN,
|
|
|
+ version=3,
|
|
|
unique_id="uniqueid",
|
|
|
data={
|
|
|
CONF_DEVICE_ID: "deviceid",
|