If there's a way I haven't found it. I think it's a bug. I think it's only supposed to ask you for the code once for every new device. But that isn't how it's been working lately. I've never had to enter the code this much before. I AirPlay from both of my iOS devices.