Closed Olegz73 closed 6 months ago
Sorry, thought this was an easy fix, but it turns out that custom-card-helpers
don't have these functions (yet).
I really don't understand why the fix is not working.
I basically tried to implement the same solution as here: https://github.com/grillp/homeassistant-power-distribution-card/blob/abae7e81578409ba0ee10af97cfaf32c117f24ce/src/card.ts#L162
But for some reason, npm build fails here with
[tsl] ERROR in /home/runner/work/lovelace-flower-card/lovelace-flower-card/src/utils/attributes.ts(60,38)
TS2[33](https://github.com/Olen/lovelace-flower-card/actions/runs/8536573655/job/23385362904#step:8:34)9: Property 'formatEntityState' does not exist on type 'HomeAssistant'.
Someone with more knowledge on frontend development might see the obvious solution...
Finally got it.
Should be fine in the latest beta (beta10 (!)). Will release a new version soon.
Card use default round value. See screenshots. In settings round 27 , but card shows 27.2223455 Home assistant 2024.3.1