Invert / reverse the output of modbus binary door sensor

Hi, i need to change the default state of a binary sensor over Modbus for a garage door status. When the input registers reports True is shows as open but my switch works the other way where True means closed. is there a easy way to define what True should mean?

  - name: Garage_modbus_hub
    type: tcp
    host: 192.168.1.53
    port: 502
    delay: 0
    message_wait_milliseconds: 30
    retries: 3
    timeout: 5
    #
    #
    binary_sensors:
      - name: "Garage_door_1_state"
        address: 0
        device_class: door
        input_type: discrete_input
        #lazy_error_count: 0
        scan_interval: 10
        unique_id: Garage_door_1_state
      - name: "Garage_door_2_state"
        address: 1
        device_class: door
        input_type: discrete_input
        #lazy_error_count: 0
        scan_interval: 10
        unique_id: Garage_door_2_state