Skip to content
New issue

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

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

Already on GitHub? # to your account

show_units does not work anymore #321

Closed
2 tasks done
hwmland opened this issue May 2, 2020 · 2 comments
Closed
2 tasks done

show_units does not work anymore #321

hwmland opened this issue May 2, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@hwmland
Copy link

hwmland commented May 2, 2020

Checklist

  • I updated the card to the latest version available
  • I cleared the cache of my browser

Describe the bug
After upgrading HA from 0.107.x to 0.109.2 show_units does not work anymore.

  • When set to false it does show original unit regardless of presence or value of 'units' attribute.
  • When set to true 'units' attribute is shown (correct) or original unit when attribute not specified

Version of the card
Version: 3.3.2

To Reproduce
This is the configuration I used:

          - type: "custom:button-card"
            entity:  sensor.owm_pressure
            template: bedtoom_entity_card
            icon: mdi:gauge
            name: Tlak hPa
            styles:
              card:
                - height: 165px

#### definition of template elsewhere ###

bedtoom_entity_card:
  show_state: true
  show_units: false
  styles:
    grid:
      - grid-template-areas: '"i n" "s s"'
      - grid-template-columns: 90px 1fr
      - grid-template-rows: 30px min-content
    state:
      - font-size: 5em

Screenshots
If applicable, add screenshots to help explain your problem.

Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • Chrome
  • Version 81.0.4044.129
    (the same behavior on my Android tablet)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@hwmland hwmland added the bug Something isn't working label May 2, 2020
@RomRider
Copy link
Collaborator

RomRider commented May 5, 2020

Right, I'll fix it :)

@guillermorueda
Copy link

This issue started happening again as of very recently (only noticed it today).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants