andrey-git / home-assistant-custom-ui

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

HTML Imports is deprecated and will be removed in M73, around March 2019. Please use ES modules instead. #171

Open hristo-atanasov opened 5 years ago

hristo-atanasov commented 5 years ago

Checklist

Browser + Version:

CustomUI version: 20190324

Home Assistant release (hass --version): 0.89.1

Problem-relevant configuration.yaml entries:

/config/customize.yaml

sensor.green_bedroom_temperature:
  templates:
    icon_color: >
      if (state < 20) return '#2196f3';
      if (state < 24) return '#b8e6fd';
      if (state < 28) return '#6ee86e';
      if (state < 32) return '#ff9900';
      if (state >= 32) return '#ff0000';

Problem-relevant Home Assistant log entries:

Any errors from browser Javascript console:

[Deprecation] HTML Imports is deprecated and will be removed in M73, around March 2019. Please use ES modules instead. See https://www.chromestatus.com/features/5144752345317376 for more details.

I get this warning in the console, after I installed CustomUI yesterday. Also, on recent versions of Chrome, Firefox and Edge (tested on iOS, Android, OSX and Windows), "icon_color" is not working.

EDIT: OK, this "icon_color" problem seems to be "half a problem". It works, but sometimes. :D And I can't understand why it doesn't work, when it doesn't work, and vice versa. Same browsers, same computers, same phones. Cache disabled on computer browsers .. :\

hatemzidi commented 5 years ago

same behaviour here, i'm not able yet to identify the causes and the caveats :(