Climate not working as it should

Please help me with climate. Current room temprature is 21.1 and target_temp: 19 but heater is still on .
I think heater must turn off when meet target temp.

      - platform: generic_thermostat
        name: heater
        heater: switch.switch_4
        target_sensor: sensor.fibaro_system_fgms001_motion_sensor_temperature
        min_temp: 18
        max_temp: 28
        target_temp: 19
        tolerance: 0.1
        initial_operation_mode: "auto"
          seconds: 5
          minutes: 3

Try to remove keep-alive. That is for A/C units.

Try also removin min-cycle to check of that introduced the bug