Ignore weblinks that don't exist when converting groups to lovelace config (#2488)

* Ignore weblinks that don't exist when converting groups to lovelace config

* Simplify
This commit is contained in:
Thomas Lovén 2019-01-16 22:59:58 +01:00 committed by Paulus Schoutsen
parent 1b2e052f05
commit 41554ab14d

View File

@ -69,7 +69,7 @@ const computeCards = (
type: "weather-forecast",
entity: entityId,
});
} else if (domain === "weblink") {
} else if (domain === "weblink" && stateObj) {
const conf: WeblinkConfig = {
type: "weblink",
url: stateObj.state,