mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-14 23:18:21 +00:00
Remove unused theme option in distribution card (#29250)
This commit is contained in:
committed by
Bram Kragten
parent
648db4276b
commit
873c7b2947
@@ -670,7 +670,6 @@ export interface DistributionCardConfig extends LovelaceCardConfig {
|
||||
type: "distribution";
|
||||
title?: string;
|
||||
entities: (string | DistributionEntityConfig)[];
|
||||
theme?: string;
|
||||
}
|
||||
|
||||
export interface DiscoveredDevicesCardConfig extends LovelaceCardConfig {
|
||||
|
||||
@@ -31,7 +31,6 @@ const cardConfigStruct = assign(
|
||||
baseLovelaceCardConfig,
|
||||
object({
|
||||
title: optional(string()),
|
||||
theme: optional(string()),
|
||||
entities: array(union([string(), entitiesConfigStruct])),
|
||||
})
|
||||
);
|
||||
@@ -47,10 +46,7 @@ const SUB_SCHEMA = [
|
||||
},
|
||||
] as const;
|
||||
|
||||
const SCHEMA = [
|
||||
{ name: "title", selector: { text: {} } },
|
||||
{ name: "theme", selector: { theme: {} } },
|
||||
] as const;
|
||||
const SCHEMA = [{ name: "title", selector: { text: {} } }] as const;
|
||||
|
||||
@customElement("hui-distribution-card-editor")
|
||||
export class HuiDistributionCardEditor
|
||||
@@ -199,12 +195,6 @@ export class HuiDistributionCardEditor
|
||||
)} (${this.hass!.localize(
|
||||
"ui.panel.lovelace.editor.card.config.optional"
|
||||
)})`;
|
||||
case "theme":
|
||||
return `${this.hass!.localize(
|
||||
"ui.panel.lovelace.editor.card.generic.theme"
|
||||
)} (${this.hass!.localize(
|
||||
"ui.panel.lovelace.editor.card.config.optional"
|
||||
)})`;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user