I set up HomeKit on my TCL J106X Roku TV.
However, only my personal devices that are part of my Apple Home are able to AirPlay to the TV now. Other devices (whether work- or school-issued devices, or friends' devices) are prompted for a password, which I have no way of viewing and never set. It is not my Apple ID password or my Roku account password. The "Require Code" option in the AirPlay and HomeKit Settings on the TV is set to "Use Password Instead" and cannot be changed.
Only when I remove the TV from my Apple Home can I change this setting and set my own password or remove the password altogether. If I set my own password and then add it to my Apple Home again, the password no longer works for devices outside my Apple Home.
I'm not sure if this behavior is intended or not, but at the very least, it should be made clear that devices not part of the Apple Home to which the TV is connected will not be able to AirPlay to it.