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]: Mushroom cards are incompatible with sensor display precision setting in 2023.3 beta #1035

Closed
2 tasks done
krazos opened this issue Feb 24, 2023 · 3 comments · Fixed by #1037
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@krazos
Copy link

krazos commented Feb 24, 2023

Requirements

  • I have updated Mushroom to the latest available version
  • I did a search to see if there is a similar issue or if a pull request is open.

Current Behavior

HA 2023.3 is introducing a new display precision setting for sensors:

https://rc.home-assistant.io/blog/2023/02/22/release-20233/#sensor-precision

In beta testing 2023.3.0b0 and 2023.3.0b1, a number of my mushroom entity and entity chip cards for temperature sensors -- particularly my average temperature sensors created with the new sensor group that was introduced in 2023.2 -- are showing as many as 13 decimal places instead of the 1 decimal place that I have set using the new display precision setting for the sensors.

Expected Behavior

The mushroom entity and entity chip cards (and possibly) others should be updated to respect the sensor display precision setting to ensure compatibility with 2023.3+.

Steps To Reproduce

No response

Context

State and Attribute Data for Sample Sensor

Entity:

sensor.great_room_average_temperature
Great Room Average Temperature

State:

69.0033333333333

Attributes:

state_class: measurement
entity_id: sensor.great_room_ecobee_thermostat_temperature, sensor.main_floor_ecobee_sensor_temperature, sensor.espresense_great_room_sht30_temperature
unit_of_measurement: °F
device_class: temperature
icon: mdi:thermometer
friendly_name: Great Room Average Temperature

Environment

- Browser: Chrome and iOS App
- HA Version: 2023.3.0b1
- Mushroom: 2.5.3

Anything else?

No response

@krazos krazos added the bug Something isn't working label Feb 24, 2023
@chicknlil
Copy link

Identical issue. Had opened a thread here on HA Frontend Issues because I thought it was beta related. When someone had me test with another card, I realized it was a Mushroom issue.

Curious point - when they briefly introduced this feature ... a month ago? ... in an earlier beta release, it DID work as intended (read: the cards updated with whatever you adjusted the precision to).

Happy to provide any additional info (beyond what's in my other post) if needed.

@piitaya
Copy link
Owner

piitaya commented Feb 24, 2023

Yes, Mushroom should be updated. It will be updated for the release 🙂
The display precision option was postponed because of some issues. It was not ready for last month update.

@bobloadmire
Copy link

thank you! this was really needed by HA, and now by mushroom

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

Successfully merging a pull request may close this issue.

4 participants