To solve the issue please follow the steps below:

  1. Click TV Apple Settings > AirPlay > Security.
  2. Change “Passcode” to “Password”.

You will need to enter the passcode only once. After that, you won’t have to type it twice every time.