home-assistant / iOS

:iphone: Home Assistant for Apple platforms
https://companion.home-assistant.io
Other
1.6k stars 310 forks source link

Sensor Widget does not respect precision #3122

Open DCSBL opened 3 weeks ago

DCSBL commented 3 weeks ago

iOS device model, version and app version

Model Name: iPhone 16 Pro Software Version: 18.1 App version: Versie: Tesflight 2024.10 (2024.913)

Home Assistant Core Version

Describe the bug New iOS Sensor widget does not respect value precision setting.

To Reproduce Select a non-default precision in sensor settings, select this sensor in the widget

Expected behavior Precision is reflected everywhere, why not in the widget?

Screenshots

IMG_0563 IMG_0562

Additional context

Not sure if this a bug or just a missing feature.

Penait1 commented 3 weeks ago

Hi, this is missing based on my optimistic assumption that the HomeAssistant API would return the value with the configured precision setting applied.

I'll look into it how to apply the precision settings anytime soon since that would be great for readability