🛠️ 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:
Ian Richardson 2019-01-10 15:33:34 -06:00 committed by Paulus Schoutsen
parent e228f60c39
commit 07a4505f1e

View File

@ -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) {