tests/components/google/test_init.py
def add_event_call_service(
    hass: HomeAssistant,
    request: Any,
) -> Callable[dict[str, Any], Awaitable[None]]:
    """Fixture for calling the add or create event service."""
    (service_call, data, target) = request.param

    async def call_service(params: dict[str, Any]) -> None:
        await hass.services.async_call(
            DOMAIN,
            service_call,
            {
                **data,
                **params,
                "summary": TEST_EVENT_SUMMARY,
                "description": TEST_EVENT_DESCRIPTION,
            },
            target=target,
            blocking=True,
        )

    return call_service
Fixture for calling the add or create event service.
Fixture for calling the add or create event service.
Fixture for calling the add or create event service .
def add_event_call_service(
    hass: HomeAssistant,
    request: Any,
) -> Callable[dict[str, Any], Awaitable[None]]:
    (service_call, data, target) = request.param
    async def call_service(params: dict[str, Any]) -> None:
        await hass.services.async_call(
            DOMAIN,
            service_call,
            {
                **data,
                **params,
                "summary": TEST_EVENT_SUMMARY,
                "description": TEST_EVENT_DESCRIPTION,
            },
            target=target,
            blocking=True,
        )
    return call_service
def add_event_call_service ( hass : HomeAssistant , request : Any , ) -> Callable [ dict [ str , Any ] , Awaitable [ None ] ] : ( service_call , data , target ) = request . param async def call_service ( params : dict [ str , Any ] ) -> None : await hass . services . async_call ( DOMAIN , service_call , { ** data , ** params , "summary" : TEST_EVENT_SUMMARY , "description" : TEST_EVENT_DESCRIPTION , } , target = target , blocking = True , ) return call_service
Fixture for calling the add or create event service.
Fixture for calling the add or create event service .
"""Fixture for calling the add or create event service."""
hass
HomeAssistant
request
Any