It’s remarkable to me how connecting to hotel wifi isn’t standardised. The password could be your room number, a captive portal asking for your room number. Or, as here, a code that appears when you turn on the hotel TV. Which I never do, because of streaming.