Every YouTube app I've used on streaming box had an option to allow the use of a TV code to run videos to the YouTube app. Except for this one and it's official android.
Am I doing something wrong here? Does android tv YouTube app really not have support for "tv code" pairing?
I've never heard of this "TV code" that you speak of. What's it for? Sounds like a workaround for those hacked together Android boxes.
With the Android TV operating system, you have Google Cast built in, so any device on the same network as your Mi Box should be able to cast content to your TV. You don't really need to "pair" anything, it should just work.