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

@@ -184,6 +184,7 @@ async def test_turn_on_skips_domains_without_service(
# because by mocking out the call service method, we mock out all
# So we mimic how the service registry calls services
service_call = ha.ServiceCall(
hass,
"homeassistant",
"turn_on",
{"entity_id": ["light.test", "sensor.bla", "binary_sensor.blub", "light.bla"]},