Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hristo-atanasov opened this issue May 2, 2019 · 1 comment

Comments

@hristo-atanasov
Copy link

hristo-atanasov commented May 2, 2019

Checklist

  • [. ] I'm running the latest version of CustomUI (Update guide) or using a specific release that is not marked as "Broken".
  • [. ] I tried to force-refresh (Ctrl+Shift+R / Ctrl+F5) the browser
  • [. ] (Optional, but recommended) I'm using Chrome or tried to reproduce the feature on Chrome.

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants