I think most people just do the initial set up with a Gmail account that isn’t used for anything else.
That way when you move out you just give them the Gmail account and tell them to change the password on it.
That said, be aware that selling a system with a home in this way will in some states make you responsible for the proper operation of that system, which is not what most home sellers want.
The usual advice from real estate brokers in 2019 is to factory reset everything, devices and hub, and give them the equipment with the understanding that they will have to set it up as though they had just purchased it themselves. That generally removes you from the liability for its proper operation on the automation side.
That is also the advice from the FTC, to avoid any false marketing claims. See the following existing discussion (the topic title is a clickable link). It includes links to the FTC and brokers Association guidance.
Also be aware that individual device manufacturers may not allow for the device warranty to be transferred to a new owner.
How do you transition a smart house when you sell it? (2018)