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 badge unit not available and showing 'none' below badge #167

Closed Mariusthvdb closed 5 years ago

Mariusthvdb commented 5 years ago

Checklist

Browser + Version:

CustomUI version: 20190113 but was also on 20181217 Home Assistant release (hass --version): 0.84.6, not happening on 0.84.3

Problem-relevant configuration.yaml entries:

light.lounge_chair_long:
  icon: mdi:seat-recline-extra
  extra_data_template: >
    if (attributes.hs_color) 
        return 'Hs: ' + attributes.hs_color;
    return null;
  state_card_mode: break-slider
  stretch_slider: true
  hide_control: false
  show_last_changed: true
  confirm_controls: true
  slider_theme:
    min: 0
    max: 255
    pin: true
    off_when_min: true
    report_when_not_changed: true
  extra_badge:
    - attribute: brightness
      unit: Br

Problem-relevant Home Assistant log entries:

schermafbeelding 2019-01-24 om 11 11 43

Any errors from browser Javascript console:

don't see any

schermafbeelding 2019-01-24 om 11 05 02

this is what it is supposed to look like:

schermafbeelding 2019-01-24 om 11 05 26

andrey-git commented 5 years ago

This should have been fixed by 2019-01-13

Mariusthvdb commented 5 years ago

HI @andrey-git ,

this is still not as it used to be: units under the badges are not displayed any more, please see https://github.com/andrey-git/home-assistant-custom-ui/issues/165#issuecomment-479467788

thanks