pyatv: Can't Add Apple TV
Describe the bug I was previously successfully using this Beta but had to delete it to try and solve some other issues I was having, but now that I’ve reinstalled it I can’t get it to add my AppleTV.
After I’ve installed it and go to “Integrations” and then “AppleTV”, I get a message that it’s auto-discovered all of the AppleTV’s in my house, even though I have the following in my yaml:
discovery:
ignore:
- apple_tv
Then I’ll add in the IP address of the AppleTV I want to add, enter the code, and then it simply says “Aborted” and nothing happens. Furthermore, if I get a code starting in ‘0’ I can’t add it. It’s almost as if the Beta component just isn’t installing correctly, even though I tried both installing through HACS and manually. Debug logs are attached.
To Reproduce Try and add an AppleTV using the steps in the custom component. PYATV.log
Expected behavior Auto-discovery of my AppleTV’s shouldn’t occur, I should be able to enter codes starting in 0, and I should be able to successfully add my AppleTV.
System Setup (please complete the following information):
- OS: Hass.IO 0.100.1
- Python: not sure how to check this…
- pyatv: 0.4.0a10
Additional context
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (10 by maintainers)
@Tangston311 Great, thanks for verifying! 😊 I will close the issue, feel free to write a new issue if you run into more problems!
No worries - appreciate the hard work!
Ok, so, this was one of those “it works for me”-kinda situations. It so happens that I already fixed this problem (at least for AirPlay):
https://github.com/postlund/pyatv/commit/d49837db28788dc98ae5facacfa84680cb7c4817
Since I have these changes locally I get the proper error message. I have not released
pyatv
with this change and updated the component yet though. So that is why you get the error above. I will hopefully make a new release tonight.As I suspected:
It is reasonable that this happen, I must handle this exception separately. This is all I need to fix this, thanks for all the help! 😄
Sure thing - I’ll add that in and post results tomorrow morning.