mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-07 17:26:32 +00:00
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:
parent
dfa1602ac6
commit
b030879efd
@ -87,4 +87,4 @@ class DetectBlockingIO(StrEnum):
|
||||
|
||||
OFF = "off"
|
||||
ON = "on"
|
||||
ON_AT_STARTUP = "on_at_startup"
|
||||
ON_AT_STARTUP = "on-at-startup"
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user