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

[Bug]: Number state in number card not displaying correct "time unit" #1561

Open
3 tasks done
flavioxavier opened this issue Oct 23, 2024 · 2 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@flavioxavier
Copy link

Requirements

  • I checked the troubleshooting section in the README to verify that I have the latest Mushroom version.
  • I did a search to see if there is a similar issue or if a pull request is open.
  • I have read the state of card mod support (in pin issues) and understand card mod support is not provided in this repository.

Current Behavior

When a input number with device_class: duration and unit s (seconds) is used in number card it shows only seconds even if more than 60s

Expected Behavior

It should show hours/minutes when the value is more than 60s like the Tile or Mushroom Entity cards

Captura de ecrã 2024-10-23, às 16 26 46

Steps To Reproduce

1 - Create a number with device class duration and unit seconds
2 - Set a value bigger than 60
3 - Add it to a Mushroom number card

Context

YAML state

Environment

- Browser: Firefox
- HA Version: 2024.10.1
- Mushroom: 4.0.7

Anything else?

No response

@flavioxavier flavioxavier added the bug Something isn't working label Oct 23, 2024
@piitaya
Copy link
Owner

piitaya commented Oct 23, 2024

The duration device class is not consistent in Home Assistant. Because you can set an unit but it's not respected in the UI. I will look how I can fix that in Home Assistant and then Mushroom can adapt.

@flavioxavier
Copy link
Author

flavioxavier commented Oct 23, 2024 via email

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

No branches or pull requests

2 participants