Uptime configuration not working

I have this code in configuration.yaml:

sensor:
  - platform: systemmonitor
    resources:
      - type: disk_use_percent
        arg: /home
      - type: memory_free
      - type: load_1m

  - platform: uptime

but I get this configuration error in Home Assistant:
It’s not possible to configure uptime sensor by adding platform: uptime to the sensor configuration. Please check the documentation for more information on how to set up this integration.

To resolve this:

  1. Remove platform: uptime occurrences from the sensor: configuration in your YAML configuration file.
  2. Restart Home Assistant.

I am trying to use this entities:

              - entity: sensor.load_1m
              - entity: sensor.memory_free
              - entity: sensor.uptime

I installed the system monitor integration and it solved my problems.