Thermostat Not Updating Properly

I have an Ecobee thermostat configured via the HomeKit integration. In general, it works properly.

The problem I’m having is that I have to send an update twice for it to take, even when I set the mode separately and insert a delay. For example, it sets the high temp properly but not the low temp. The variables are correct:

 action: climate.set_hvac_mode
 metadata: {}
 data:
   hvac_mode: heat_cool
 target:
   entity_id: climate.risa
 delay:
   hours: 0
   minutes: 0
   seconds: 5
   milliseconds: 0
 target:
   entity_id: climate.risa
 data:
   target_temp_high: '{{ states(''input_number.temp_high_comfort'') | float }}'
   target_temp_low: '{{ states(''input_number.temp_low_comfort'') | float }}'
 action: climate.set_temperature

The only way I have found it to be reliable is to send the climate.set_temperature action twice. Most frustratingly, if I don’t, then the HA UI will display the thermostat card as if it worked, but the actual thermostat did not set the low temp properly.

I could just send it twice, but that seems like an inelegant hack. I’d rather know why it’s not working.