Skip to content

Commit 54d9519

Browse files
authored
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. -->
1 parent 76ea317 commit 54d9519

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Sources/Extensions/AppIntents/Widget/Script/WidgetScriptsAppIntent.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import Shared
77
struct WidgetScriptsAppIntent: AppIntent, WidgetConfigurationIntent {
88
static let title: LocalizedStringResource = .init("widgets.scripts.description", defaultValue: "Run Scripts")
99

10+
static var isDiscoverable: Bool = false
11+
1012
// ATTENTION: Unfortunately these sizes below can't be retrieved dynamically from widget family sizes.
1113
// Check ``WidgetFamilySizes.swift`` as source of truth
1214
@Parameter(

Sources/Extensions/Widgets/Custom/WidgetCustomTimelineProvider.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ enum WidgetCustomConstants {
214214
struct WidgetCustomAppIntent: AppIntent, WidgetConfigurationIntent {
215215
static let title: LocalizedStringResource = .init("widgets.custom.title", defaultValue: "Custom widgets")
216216

217+
static var isDiscoverable: Bool = false
218+
217219
@Parameter(
218220
title: "Widget"
219221
)

0 commit comments

Comments
 (0)