home-assistant / ui-schema

A schema to define a user interface for Home Assistant.
Apache License 2.0
41 stars 6 forks source link

Raw config editor #225

Closed bstrakt closed 5 years ago

bstrakt commented 5 years ago

I'm doing my edits in ui-lovelace.yaml and pasting the content in Config raw editor. This method worked until version 0.85, where Resources are discarded.

In version 0.85, if I'm pasting the contents from ui-lovelace.yaml to Configure UI - Raw config editor, the Resources are discarded and custom cards are not loaded:

Example from .storage/lovelace before 0.85: { "data": { "config": { "resources": [ { "type": "module", "url": "/local/custom_ui/monster-card.js" }, { "type": "module", "url": "/local/custom_ui/jukebox.js" } ], "title": "bla bla", "views": [ { "cards": [ { .... Example from .storage/lovelace in 0.85: { "data": { "config": { "title": "Home Sweet Home", "views": [ { ....

Contents of ui-lovelace.yaml: title: bla bla resources:

balloob commented 5 years ago

Fixed in https://github.com/home-assistant/home-assistant-polymer/pull/2439