mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 07:46:37 +00:00
Only show header toggle for entities card if title (#7525)
This commit is contained in:
parent
630d8c3bb6
commit
76a088e177
@ -115,7 +115,7 @@ class HuiEntitiesCard extends LitElement implements LovelaceCard {
|
|||||||
|
|
||||||
this._config = config;
|
this._config = config;
|
||||||
this._configEntities = entities;
|
this._configEntities = entities;
|
||||||
if (config.show_header_toggle === undefined) {
|
if (config.title !== undefined && config.show_header_toggle === undefined) {
|
||||||
// Default value is show toggle if we can at least toggle 2 entities.
|
// Default value is show toggle if we can at least toggle 2 entities.
|
||||||
let toggleable = 0;
|
let toggleable = 0;
|
||||||
for (const rowConf of entities) {
|
for (const rowConf of entities) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user