Skip to content

Commit e566ace

Browse files
authored
Change "Require confirmation" default value to false (#3443)
<!-- 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 9a69542 commit e566ace

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/App/Settings/MagicItem/Edit/MagicItemCustomizationView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ struct MagicItemCustomizationView: View {
221221
}
222222
Section {
223223
Toggle(L10n.MagicItem.RequireConfirmation.title, isOn: .init(get: {
224-
viewModel.item.customization?.requiresConfirmation ?? true
224+
viewModel.item.customization?.requiresConfirmation ?? false
225225
}, set: { newValue in
226226
viewModel.item.customization?.requiresConfirmation = newValue
227227
}))

Sources/Shared/MagicItem/MagicItem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public struct MagicItem: Codable, Equatable, Hashable {
7474
iconColor: String? = nil,
7575
textColor: String? = nil,
7676
backgroundColor: String? = nil,
77-
requiresConfirmation: Bool = true,
77+
requiresConfirmation: Bool = false,
7878
icon: String? = nil
7979
) {
8080
self.iconColor = iconColor

0 commit comments

Comments
 (0)