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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user