From b030879efdc6a82a24d10f9b133c1cf62da23631 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 20 Jun 2025 12:52:12 +0200 Subject: [PATCH] Rename detect-blocking-io API value to match other APIs (#5964) * Rename detect-blocking-io API value to match other APIs For the new detect-blocking-io option, use dashes instead of underscores in `on-at-startup` for consistency with other API endpoints. This is a breaking change, but since the API is really new and not really used yet, it is fairly safe to do so. * Fix pytest --- supervisor/api/const.py | 2 +- tests/api/test_supervisor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/supervisor/api/const.py b/supervisor/api/const.py index a49b88f94..6eb65df70 100644 --- a/supervisor/api/const.py +++ b/supervisor/api/const.py @@ -87,4 +87,4 @@ class DetectBlockingIO(StrEnum): OFF = "off" ON = "on" - ON_AT_STARTUP = "on_at_startup" + ON_AT_STARTUP = "on-at-startup" diff --git a/tests/api/test_supervisor.py b/tests/api/test_supervisor.py index 251ff4eef..07032d88b 100644 --- a/tests/api/test_supervisor.py +++ b/tests/api/test_supervisor.py @@ -271,7 +271,7 @@ async def test_api_supervisor_options_country(api_client: TestClient, coresys: C @pytest.mark.parametrize( ("blockbuster", "option_value", "config_value"), - [("no_blockbuster", "on", False), ("no_blockbuster", "on_at_startup", True)], + [("no_blockbuster", "on", False), ("no_blockbuster", "on-at-startup", True)], indirect=["blockbuster"], ) async def test_api_supervisor_options_blocking_io(