mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
🛠️ add resources
to lovelace struct (#2439)
* 🛠️ add `resources` to lovelace struct
`resources` are being removed by Raw Config Editor on save
* make resources optional
* Prevent removal of extra keys
This commit is contained in:
parent
e228f60c39
commit
07a4505f1e
@ -18,9 +18,10 @@ import "../../components/ha-icon";
|
||||
|
||||
const TAB_INSERT = " ";
|
||||
|
||||
const lovelaceStruct = struct.partial({
|
||||
const lovelaceStruct = struct.interface({
|
||||
title: "string?",
|
||||
views: ["object"],
|
||||
resources: struct.optional(["object"]),
|
||||
});
|
||||
|
||||
class LovelaceFullConfigEditor extends hassLocalizeLitMixin(LitElement) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user