Long delay change Fronius WMaxLimPct (Power limit)

One year ago, I created script for change WMaxLimPct by modbus registers on my Fronius solar invertor. It worked perfectly.
During winter I didn’t use it (because was not so much sunlight). During this time I did a lot of upgrades home assistant and Fronius firmware.
Now when I start the script, it has very long reaction time to change WMaxLimPct (delay is between 20s-60s) .
I dont understant why. Is it because some firmware upgrade maybe?

My script:

sequence:
  - if:
      - condition: state
        entity_id: input_select.rezim_omezovani_vyroby_fronius201
        state: Manual Power Limit
    then:
      - action: modbus.write_register
        metadata: {}
        data:
          hub: Fronius201
          address: 40236
          slave: 1
          value: 0
      - action: modbus.write_register
        metadata: {}
        data:
          hub: Fronius201
          address: 40232
          slave: 1
          value: "{{ states('input_number.maximalnivykonfronius201') }}"
      - action: modbus.write_register
        metadata: {}
        data:
          hub: Fronius201
          address: 40236
          value: 1
          slave: 1
        enabled: true
alias: Fronius_nastaveni_max_vykonu
description: ""