I usually handle this by automating initial configuration wth PNP. This way the switch is added to the inventory on provisioning and ready to be configured if you don't want to do the whole thing in PNP. If you are using an external system for automating configuration you should add devices to inventory as part of that workflow.
Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev