Value.y_axis_precision is extraneous

Hi,

I installed Hacs and ApexCharts in home assistant with the intention of using the Lovelace card for iSpindel, more or less by copy pasting from the iSpindel HA/ESPhome project on git: GitHub - alsFC/esphome-iSpindel: iSpindel for ESPHome

The rest of the code works like a charm with only a few modifications, so I expect this to do so as well. When I use the code for the lovelace-stuff however, I get this error:

value.y_axis_precision is extraneous

The code I am using in an Apex card is this:

What does that error mean and how do I get rid of it? Also, is there a better way to build this that will give errors that point to a specific place in the code?

Did you look at the code you pasted into your configuration?

...
      colorize_states: true
    y_axis_precision: 0
    all_series_config:
...

I’d start by taking that row out and seeing if it works.

Did you take a look at the apexcharts-card documentation (linked to from HACS)?

It has this:

Then, if you want more info, look at the related release notes and see why it’s changed, what alternatives (if you need one) there are.

y-axis float precision is huge when y-axis defined Β· Issue #164 Β· RomRider/apexcharts-card (github.com)

@eggman Thank you, it looks like it is working now! This will be awesome!

I actually did search for it in the code, but found no matches. I think what tricked med was the tabs in the top of the coding window that hide some of the code. I also googled the error and searched in here prior to writing.