File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export interface HomeFrontendSystemData {
2121 favorite_entities ?: string [ ] ;
2222 welcome_banner_dismissed ?: boolean ;
2323 hidden_summaries ?: string [ ] ;
24- show_suggested_entities ?: boolean ;
24+ hide_suggested_entities ?: boolean ;
2525}
2626
2727declare global {
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export class DialogEditHome
120120 ${ this . hass . localize ( "ui.panel.home.editor.suggested_entities" ) }
121121 </ span>
122122 <ha- switch
123- .checked = ${ this . _config ?. show_suggested_entities !== false }
123+ .checked = ${ ! this . _config ?. hide_suggested_entities }
124124 @change = ${ this . _suggestedEntitiesToggleChanged }
125125 > </ ha- switch>
126126 </ label>
@@ -224,7 +224,7 @@ export class DialogEditHome
224224 const checked = ( ev . target as HTMLInputElement ) . checked ;
225225 this . _config = {
226226 ...this . _config ,
227- show_suggested_entities : checked ? undefined : false ,
227+ hide_suggested_entities : checked ? undefined : true ,
228228 } ;
229229 }
230230
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ class PanelHome extends LitElement {
319319 favorite_entities : this . _config . favorite_entities ,
320320 home_panel : true ,
321321 hidden_summaries : this . _config . hidden_summaries ,
322- show_suggested_entities : this . _config . show_suggested_entities ,
322+ hide_suggested_entities : this . _config . hide_suggested_entities ,
323323 } ,
324324 } ;
325325
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export interface HomeDashboardStrategyConfig {
1818 favorite_entities ?: string [ ] ;
1919 home_panel ?: boolean ;
2020 hidden_summaries ?: string [ ] ;
21- show_suggested_entities ?: boolean ;
21+ hide_suggested_entities ?: boolean ;
2222}
2323
2424@customElement ( "home-dashboard-strategy" )
@@ -97,7 +97,7 @@ export class HomeDashboardStrategy extends ReactiveElement {
9797 favorite_entities : config . favorite_entities ,
9898 home_panel : config . home_panel ,
9999 hidden_summaries : config . hidden_summaries ,
100- show_suggested_entities : config . show_suggested_entities ,
100+ hide_suggested_entities : config . hide_suggested_entities ,
101101 } satisfies HomeOverviewViewStrategyConfig ,
102102 } ,
103103 ...areaViews ,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export interface HomeOverviewViewStrategyConfig {
4040 favorite_entities ?: string [ ] ;
4141 home_panel ?: boolean ;
4242 hidden_summaries ?: string [ ] ;
43- show_suggested_entities ?: boolean ;
43+ hide_suggested_entities ?: boolean ;
4444}
4545
4646const computeAreaCard = (
@@ -195,7 +195,7 @@ export class HomeOverviewViewStrategy extends ReactiveElement {
195195 limit : maxCommonControls ,
196196 include_entities : favoriteEntities ,
197197 hide_empty : true ,
198- show_predicted : config . show_suggested_entities !== false ,
198+ show_predicted : ! config . hide_suggested_entities ,
199199 heading : {
200200 type : "heading" ,
201201 heading : hass . localize ( "ui.panel.lovelace.strategy.home.favorites" ) ,
You can’t perform that action at this time.
0 commit comments