Rpi GPIO not found error

When I tried to reset my pi for some changes this error appeared
Platform error switch.rpi_gpio - Integration ‘rpi_gpio’ not found.

My configuration.yaml is this



default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

# Text to speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml


sensor:
  - platform: command_line
    name: pi temperature
    command: "cat /sys/class/thermal/thermal_zone0/temp"
    unit_of_measurement: "°C"
    value_template: '{{ value | multiply(0.001) | round(1) }}'
    scan_interval: 3
    

      
    

  - platform: command_line
    name: Duino
    command: "curl https://server.duinocoin.com/balances/ferr_ari | jq '.result.balance'"
    unit_of_measurement: 'Ducos'
    unique_id: 'Duino_test'
    value_template: "{{ value | round (3) }}"
    
switch:
  - platform: rpi_gpio
    ports:
      18: RPI Cooling Fan
climate:
  - platform: generic_thermostat
    name: RPI Cooling Fan Controller
    heater: switch.rpi_cooling_fan
    target_sensor: sensor.cpu_temperature
    min_temp: 55
    max_temp: 80
    ac_mode: true
    target_temp: 55
    cold_tolerance: 0.1
    hot_tolerance: 0.1
    min_cycle_duration:
      seconds: 30
    keep_alive:
      minutes: 5
    initial_hvac_mode: "cool"
    
homeassistant:
  name: Home
  unit_system: metric
  # etc

  customize:
    sensor.duino:
      entity_picture: https://raw.githubusercontent.com/revoxhere/duino-coin/master/Resources/duco-alt.png