mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-04-28 04:13:12 +01:00
Deprecate advanced mode option in addon config (#6614)
* Deprecate advanced mode option in addon config * Note deprecation of field in addon info and list APIs * Update docstring per copilot
This commit is contained in:
@@ -223,6 +223,16 @@ def test_warn_legacy_machine_values(caplog: pytest.LogCaptureFixture):
|
||||
assert "Add-on config 'machine' uses deprecated values" in caplog.text
|
||||
|
||||
|
||||
def test_warn_advanced_deprecated(caplog: pytest.LogCaptureFixture):
|
||||
"""Warn when deprecated advanced field is present."""
|
||||
config = load_json_fixture("basic-addon-config.json")
|
||||
config["advanced"] = True
|
||||
|
||||
vd.SCHEMA_ADDON_CONFIG(config)
|
||||
|
||||
assert "uses deprecated 'advanced' field in config" in caplog.text
|
||||
|
||||
|
||||
async def test_valid_manifest_build():
|
||||
"""Validate build config with manifest build from."""
|
||||
config = load_json_fixture("build-config-manifest.json")
|
||||
|
||||
Reference in New Issue
Block a user