Skip to content

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

Description

@hristo-atanasov

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 .. :\

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions