[core][cover] Add register_apply_action for actions that only forward values (#19469)

This commit is contained in:
J. Nick Koston
2026-09-23 09:36:42 +00:00
committed by GitHub
parent 359eba7145
commit e8d3c06b60
15 changed files with 485 additions and 194 deletions
@@ -1,4 +1,4 @@
"""Integration test for cover ControlAction and CoverPublishAction.
"""Integration test for the cover.control and cover.template.publish actions.
Tests that cover.control and cover.template.publish automation actions
work correctly with the single stateless apply lambda/function pointer
@@ -22,7 +22,7 @@ async def test_cover_control_action(
run_compiled: RunCompiledFunction,
api_client_connected: APIClientConnectedFactory,
) -> None:
"""Test cover ControlAction/CoverPublishAction with constants and lambdas."""
"""Test cover.control and cover.template.publish with constants and lambdas."""
loop = asyncio.get_running_loop()
async with run_compiled(yaml_config), api_client_connected() as client:
cover_state_future: asyncio.Future[CoverState] | None = None