andrey-git / home-assistant-custom-ui

Custom UI elements for https://home-assistant.io
https://home-assistant.io
MIT License
528 stars 97 forks source link

Extra keys not allowed #173

Closed thisis-gj closed 5 years ago

thisis-gj commented 5 years ago

CustomUI version: Latest

Home Assistant release (hass --version): 0.93.3

Problem-relevant configuration.yaml entries:

homeassistant:
  customize:
    customize_glob:
      light.*:
        custom_ui_state_card: state-card-custom-ui

Problem-relevant Home Assistant log entries:

extra keys not allowed @ data['customize']['customize_glob']
Uncaught TypeError: Cannot read property 'some' of undefined

Any errors from browser Javascript console:

Access to imported resource at 'https://github.com/andrey-git/home-assistant-custom-ui/releases/download/20171129/state-card-custom-ui-dbg.html' from origin 'http://www. redacted.casa' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Mariusthvdb commented 5 years ago

customize_glob should have its own entry under homeassistant: and you have it under customize: It should be:

homeassistant:
  customize_glob:
    light.*:
      custom_ui_state_card: state-card-custom-ui

  customize:
    thingstocustomize:
thisis-gj commented 5 years ago

Ah my bad. Thanks a lot @Mariusthvdb , it worked!