I checked my own home assistant (which is 'Home Assistant Operating System' runs on a raspberry pi 4).
I don't have any unit_system: metric in my configuration.yaml file
If I go to menu settings\system\general
There I see a radio button, that is selected : Unit System : metric (celcius,kilogram)