Climate trait to set decimals on climate

I have a climate, and it works well without decimal but i’m unable to add decimal points to it.

    climate::ClimateTraits Samsung_AC_CustClim::traits() {
      auto traits = climate::ClimateTraits();
      traits.set_supports_current_temperature(true);
      traits.set_visual_temperature_step(0.1);
      traits.set_visual_current_temperature_step(0.1);
      traits.set_visual_target_temperature_step(0.1);
      traits.set_visual_min_temperature(setMin);
      traits.set_visual_max_temperature(setMax);
      return traits;
    }

When espHome runs I can see

[16:19:04][D][climate:396]: 'Water heater' - Sending state:
[16:19:04][D][climate:399]:   Mode: HEAT
[16:19:04][D][climate:410]:   Preset: ECO
[16:19:04][D][climate:419]:   Current Temperature: 41.40°C
[16:19:04][D][climate:425]:   Target Temperature: 43.00°C
[16:19:04][D][climate:396]: 'Heating' - Sending state:
[16:19:04][D][climate:399]:   Mode: OFF
[16:19:04][D][climate:419]:   Current Temperature: 29.10°C
[16:19:04][D][climate:425]:   Target Temperature: 29.00°C

But Hass and AppDaemon always shows it wothout decimals:

hvac_modes:
  - "off"
  - heat
min_temp: 40
max_temp: 65
target_temp_step: 1
preset_modes:
  - none
  - boost
  - eco
  - activity
current_temperature: 41
temperature: 43
preset_mode: eco
friendly_name: espPdc Water heater
supported_features: 401

How Can I make it works?

Thanks

It works if I set it from yaml:


          visual:
            temperature_step:
              target_temperature: 0.1
              current_temperature: 0.1