Skip to content

Commit 1148294

Browse files
authored
Remove custom widgets from release build (#3462)
<!-- 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 5f765e5 commit 1148294

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Sources/App/Settings/SettingsViewController.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,14 @@ class SettingsViewController: HAFormViewController {
117117
}
118118

119119
if contentSections.contains(.integrations) {
120-
form +++ Section()
120+
let featuresSection = Section()
121121
<<< SettingsRootDataSource.Row.sensors.row
122122
<<< SettingsRootDataSource.Row.nfc.row
123-
<<< SettingsRootDataSource.Row.widgets.row
123+
124+
#if DEBUG
125+
featuresSection <<< SettingsRootDataSource.Row.widgets.row
126+
#endif
127+
form +++ featuresSection
124128
}
125129

126130
// Display Apple Watch section only for devices that make sense

0 commit comments

Comments
 (0)