tests/components/google/conftest.py
def calendars_config_entity(
    calendars_config_track: bool, calendars_config_ignore_availability: bool | None
) -> dict[str, Any]:
    """Fixture that creates an entity within the yaml configuration."""
    entity = {
        "device_id": "backyard_light",
        "name": "Backyard Light",
        "search": "#Backyard",
        "track": calendars_config_track,
    }
    if calendars_config_ignore_availability is not None:
        entity["ignore_availability"] = calendars_config_ignore_availability
    return entity
Fixture that creates an entity within the yaml configuration.
Fixture that creates an entity within the yaml configuration.
Fixture that creates an entity within the yaml configuration .
def calendars_config_entity(
    calendars_config_track: bool, calendars_config_ignore_availability: bool | None
) -> dict[str, Any]:
    entity = {
        "device_id": "backyard_light",
        "name": "Backyard Light",
        "search": "#Backyard",
        "track": calendars_config_track,
    }
    if calendars_config_ignore_availability is not None:
        entity["ignore_availability"] = calendars_config_ignore_availability
    return entity
def calendars_config_entity ( calendars_config_track : bool , calendars_config_ignore_availability : bool | None ) -> dict [ str , Any ] : entity = { "device_id" : "backyard_light" , "name" : "Backyard Light" , "search" : "#Backyard" , "track" : calendars_config_track , } if calendars_config_ignore_availability is not None : entity [ "ignore_availability" ] = calendars_config_ignore_availability return entity
Fixture that creates an entity within the yaml configuration.
Fixture that creates an entity within the yaml configuration .
"""Fixture that creates an entity within the yaml configuration."""
calendars_config_track
bool
calendars_config_ignore_availability
bool | None