Quick Question about the right place for zigbee2mqtt config yaml change

Dear all,

as this is my first time changing something here I want to make sure I do it in the right place.

I got a device where the doc says:

By default (for backwards compatibility purposes) the legacy integration is enabled. For new users it is recommended to disable this as it has several fundamental problems. To disable the legacy integration add the following to your configuration.yaml:

'0xabc457fffe679xyz':
    friendly_name: my_remote
    legacy: false

So I would like to do that.

  1. First I went to Home Assitant to the official file editor add-on and went into the folder
    /config/zigbee2mqtt where I found a configuration.yaml

I was a bit surprised as I expected it in a folder called “data” according to the docu:

So maybe this is the wrong file?

  1. As a second option I found the tab “Configuration” under the zigbee2mqtt add-on via the Home Assitant UI.
    I can also make and save changes right here. The content is almost identical to the above mentioned file. Not 100% identical though.

Is one of the two options fine to add the legacy mode? Or maybe both fine? Or I am maybe totally in the wrong place?

Big thank you in advance.

(running v 1.24.0-1)