def is_our_context(context: Context | None, which: str | None = None) -> bool:
    """Check whether this integration created 'context'."""
    if context is None:
        return False
    return is_our_context_id(context.id, which)
Check whether this integration created 'context'.
custom_components/adaptive_lighting/switch.py