mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
Deprecate Home Connect command actions (#139093)
* Deprecate command actions * Improve issue description * Improve issue description Co-authored-by: Martin Hjelmare <marhje52@gmail.com> --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c1e5673cbd
commit
1cd82ab8ee
@@ -338,11 +338,27 @@ async def test_key_value_services(
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"service_call",
|
||||
DEPRECATED_SERVICE_KV_CALL_PARAMS + SERVICE_PROGRAM_CALL_PARAMS,
|
||||
("service_call", "issue_id"),
|
||||
[
|
||||
*zip(
|
||||
DEPRECATED_SERVICE_KV_CALL_PARAMS + SERVICE_PROGRAM_CALL_PARAMS,
|
||||
["deprecated_set_program_and_option_actions"]
|
||||
* (
|
||||
len(DEPRECATED_SERVICE_KV_CALL_PARAMS)
|
||||
+ len(SERVICE_PROGRAM_CALL_PARAMS)
|
||||
),
|
||||
strict=True,
|
||||
),
|
||||
*zip(
|
||||
SERVICE_COMMAND_CALL_PARAMS,
|
||||
["deprecated_command_actions"] * len(SERVICE_COMMAND_CALL_PARAMS),
|
||||
strict=True,
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_programs_and_options_actions_deprecation(
|
||||
service_call: dict[str, Any],
|
||||
issue_id: str,
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
config_entry: MockConfigEntry,
|
||||
@@ -354,7 +370,6 @@ async def test_programs_and_options_actions_deprecation(
|
||||
hass_client: ClientSessionGenerator,
|
||||
) -> None:
|
||||
"""Test deprecated service keys."""
|
||||
issue_id = "deprecated_set_program_and_option_actions"
|
||||
assert config_entry.state == ConfigEntryState.NOT_LOADED
|
||||
assert await integration_setup(client)
|
||||
assert config_entry.state == ConfigEntryState.LOADED
|
||||
|
||||
Reference in New Issue
Block a user