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
This commit is contained in:
Stefan Agner 2025-06-20 12:52:12 +02:00 committed by GitHub
parent dfa1602ac6
commit b030879efd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -87,4 +87,4 @@ class DetectBlockingIO(StrEnum):
OFF = "off"
ON = "on"
ON_AT_STARTUP = "on_at_startup"
ON_AT_STARTUP = "on-at-startup"

View File

@ -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(