1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Simplify access to hass in service calls (#133062)

This commit is contained in:
epenet
2024-12-13 09:31:21 +01:00
committed by GitHub
parent f9f37b9932
commit 899fb091fc
7 changed files with 204 additions and 94 deletions

View File

@@ -1899,7 +1899,7 @@ def service_calls(hass: HomeAssistant) -> Generator[list[ServiceCall]]:
return_response: bool = False,
) -> ServiceResponse:
calls.append(
ServiceCall(domain, service, service_data, context, return_response)
ServiceCall(hass, domain, service, service_data, context, return_response)
)
try:
return await _original_async_call(