postlund / pyatv

A client library for Apple TV and AirPlay devices
https://pyatv.dev
MIT License
839 stars 91 forks source link

Pairing requirement incorrect for AirPlay/RAOP when password is set #2149

Open postlund opened 10 months ago

postlund commented 10 months ago

Describe the bug

When a password is set, pairing requirement is reported as "not needed". This is due to the fact that flags are set to 0xC4 which does not include the bit requiring one time pairing. Not sure how to fix this yet, will have to look into it at some point.

Error log

<place log here>

How to reproduce the bug?

Enable password and scan

What is expected behavior?

Pairing requirement should still be "mandatory"

Operating System

Any

Python

3.10

pyatv

0.13.2

Device

Apple TV 4K

Additional context

None