Remove zeroconf options from homekit (#35687)

* Remove zeroconf options from homekit

homekit uses the system shared zeroconf instance which
made the interface choice option controlled by the
zeroconf integration setting.

* change to cv.deprecated

* adj

* fix remaining tests from original merge conflict

* remove invalidation_version
This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-06-02 17:47:39 -05:00
1 parent bfc5aa90b1
commit 5f4fdaa171
7 files changed
+48 -149

No files matched your search

+4 -18
View File
@@ -27,7 +27,6 @@ def _mock_config_entry_with_options_populated():
},
"auto_start": False,
"safe_mode": False,
"zeroconf_default_interface": True,
},
)
@@ -149,12 +148,7 @@ async def test_options_flow_advanced(hass):
with patch("homeassistant.components.homekit.async_setup_entry", return_value=True):
result3 = await hass.config_entries.options.async_configure(
result2["flow_id"],
user_input={
"auto_start": True,
"safe_mode": True,
"zeroconf_default_interface": False,
},
result2["flow_id"], user_input={"auto_start": True, "safe_mode": True},
)
assert result3["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
@@ -167,7 +161,6 @@ async def test_options_flow_advanced(hass):
"include_entities": [],
},
"safe_mode": True,
"zeroconf_default_interface": False,
}
@@ -202,8 +195,7 @@ async def test_options_flow_basic(hass):
with patch("homeassistant.components.homekit.async_setup_entry", return_value=True):
result3 = await hass.config_entries.options.async_configure(
result2["flow_id"],
user_input={"safe_mode": True, "zeroconf_default_interface": False},
result2["flow_id"], user_input={"safe_mode": True},
)
assert result3["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
@@ -216,7 +208,6 @@ async def test_options_flow_basic(hass):
"include_entities": [],
},
"safe_mode": True,
"zeroconf_default_interface": False,
}
@@ -264,8 +255,7 @@ async def test_options_flow_with_cameras(hass):
with patch("homeassistant.components.homekit.async_setup_entry", return_value=True):
result4 = await hass.config_entries.options.async_configure(
result3["flow_id"],
user_input={"safe_mode": True, "zeroconf_default_interface": False},
result3["flow_id"], user_input={"safe_mode": True},
)
assert result4["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
@@ -279,7 +269,6 @@ async def test_options_flow_with_cameras(hass):
},
"entity_config": {"camera.native_h264": {"video_codec": "copy"}},
"safe_mode": True,
"zeroconf_default_interface": False,
}
# Now run though again and verify we can turn off copy
@@ -315,8 +304,7 @@ async def test_options_flow_with_cameras(hass):
with patch("homeassistant.components.homekit.async_setup_entry", return_value=True):
result4 = await hass.config_entries.options.async_configure(
result3["flow_id"],
user_input={"safe_mode": True, "zeroconf_default_interface": False},
result3["flow_id"], user_input={"safe_mode": True},
)
assert result4["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
@@ -330,7 +318,6 @@ async def test_options_flow_with_cameras(hass):
},
"entity_config": {"camera.native_h264": {}},
"safe_mode": True,
"zeroconf_default_interface": False,
}
@@ -353,7 +340,6 @@ async def test_options_flow_blocked_when_from_yaml(hass):
"exclude_entities": ["climate.front_gate"],
},
"safe_mode": False,
"zeroconf_default_interface": True,
},
source=SOURCE_IMPORT,
)