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

gauge card, no red color if the theme is not selected #7016

Closed
3 tasks done
asystentka-jolka opened this issue Sep 15, 2020 · 2 comments
Closed
3 tasks done

gauge card, no red color if the theme is not selected #7016

asystentka-jolka opened this issue Sep 15, 2020 · 2 comments
Labels
Bug Current Bug in UI - Extra Attention

Comments

@asystentka-jolka
Copy link

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.

The problem

if the theme is not selected on the gauge there is no red color
see the example below

type: gauge
entity: sensor.ais_wifi_service_current_network_info
min: 0
max: 100
severity:
  green: 70
  yellow: 40
  red: 30
name: Connection speed
  1. the connection speed is above 70 - all correct - green
    image

  2. the connection speed is between 40-70 - all correct - yellow
    image

  3. the connection speed is between 30-40- no red color
    image

I thought that this is a problem with template but it is not - see the code inspector - the style for .value class is not generated
image

When we do this in other way:

type: gauge
entity: sensor.ais_wifi_service_current_network_info
min: 0
max: 100
severity:
  green: 0
  yellow: 40
  red: 70
name: Connection speed
  1. the green is green
    image

  2. the yellow is yellow
    image

  3. again the is not red
    image

It looks that the .value style is not generated for red
image

When the theme is selected all works as expected

image

Expected behavior

It will be great if the default colors work even if the theme is not selected.

Steps to reproduce

as described above

Environment

  • Home Assistant release with the issue: I think this was always like that
  • Last working Home Assistant release (if known): no
  • Browser and browser version: latest chrome, ff etc..
  • Operating system: linux

State of relevant entities

Problem-relevant configuration

Javascript errors shown in your browser console/inspector

Additional information

@asystentka-jolka asystentka-jolka added the Bug Current Bug in UI - Extra Attention label Sep 15, 2020
@bramkragten
Copy link
Member

Can't reproduce, is working here.

@asystentka-jolka
Copy link
Author

Probably your skills are better than my test ;)

I'm going to check this again on pure HA (completely without my local template definition).
I will reopen when I will be 100% sure that this is not related with my template

Thanks 👋

@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Current Bug in UI - Extra Attention
Projects
None yet
Development

No branches or pull requests

2 participants