Make "Custom widgets" and "Run Scripts (widget scpecific)" App Intents not discoverable in shortcuts App (#3669)

<!-- Thank you for submitting a Pull Request and helping to improve Home
Assistant. Please complete the following sections to help the processing
and review of your changes. Please do not delete anything from this
template. -->

## Summary
<!-- Provide a brief summary of the changes you have made and most
importantly what they aim to achieve -->

## Screenshots
<!-- If this is a user-facing change not in the frontend, please include
screenshots in light and dark mode. -->

## Link to pull request in Documentation repository
<!-- Pull requests that add, change or remove functionality must have a
corresponding pull request in the Companion App Documentation repository
(https://github.com/home-assistant/companion.home-assistant). Please add
the number of this pull request after the "#" -->
Documentation: home-assistant/companion.home-assistant#

## Any other notes
<!-- If there is any other information of note, like if this Pull
Request is part of a bigger change, please include it here. -->
This commit is contained in:
Bruno Pantaleão Gonçalves
2025-06-24 13:14:00 +02:00
committed by GitHub
parent 76ea317583
commit 54d9519e7b
2 changed files with 4 additions and 0 deletions

View File

@@ -7,6 +7,8 @@ import Shared
struct WidgetScriptsAppIntent: AppIntent, WidgetConfigurationIntent {
static let title: LocalizedStringResource = .init("widgets.scripts.description", defaultValue: "Run Scripts")
static var isDiscoverable: Bool = false
// ATTENTION: Unfortunately these sizes below can't be retrieved dynamically from widget family sizes.
// Check ``WidgetFamilySizes.swift`` as source of truth
@Parameter(

View File

@@ -214,6 +214,8 @@ enum WidgetCustomConstants {
struct WidgetCustomAppIntent: AppIntent, WidgetConfigurationIntent {
static let title: LocalizedStringResource = .init("widgets.custom.title", defaultValue: "Custom widgets")
static var isDiscoverable: Bool = false
@Parameter(
title: "Widget"
)