GPIO Raspberry PI Configuration.yaml

Hi all

what is the correct syntax for reading the status of input on raspberry pi pins?
i will try to make both a doorbell and an alarm from my heater.

My syntax is as follows:
binary_sensor:

  • platform: rpi_gpio
    ports:
    17: Fyr_Alarm
    pull_mode: up
    27: Ringeklokke
    pull mode: up
    Home assistant complains about the pull mode function