postlund / pyatv

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

api: Use error_handler when connecting #2246

Closed postlund closed 8 months ago

postlund commented 8 months ago

Use error_handler when connecting to pass-through a few exceptions, to enaure they are not hidden behind an AuthenticationError. This helps a lot in Home Assistant currently.

Relates to #2242

codecov[bot] commented 8 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (e9896fa) 88.94% compared to head (c406c42) 88.96%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2246 +/- ## ========================================== + Coverage 88.94% 88.96% +0.01% ========================================== Files 167 167 Lines 11357 11350 -7 ========================================== - Hits 10102 10097 -5 + Misses 1255 1253 -2 ``` | [Files](https://app.codecov.io/gh/postlund/pyatv/pull/2246?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Pierre+St%C3%A5hl) | Coverage Δ | | |---|---|---| | [pyatv/protocols/companion/protocol.py](https://app.codecov.io/gh/postlund/pyatv/pull/2246?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Pierre+St%C3%A5hl#diff-cHlhdHYvcHJvdG9jb2xzL2NvbXBhbmlvbi9wcm90b2NvbC5weQ==) | `90.83% <100.00%> (+1.40%)` | :arrow_up: | | [pyatv/protocols/mrp/protocol.py](https://app.codecov.io/gh/postlund/pyatv/pull/2246?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Pierre+St%C3%A5hl#diff-cHlhdHYvcHJvdG9jb2xzL21ycC9wcm90b2NvbC5weQ==) | `94.03% <100.00%> (-0.08%)` | :arrow_down: | | [pyatv/support/\_\_init\_\_.py](https://app.codecov.io/gh/postlund/pyatv/pull/2246?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Pierre+St%C3%A5hl#diff-cHlhdHYvc3VwcG9ydC9fX2luaXRfXy5weQ==) | `96.39% <100.00%> (-0.07%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.