Bluetooth-Devices / bleak-retry-connector

A connector for Bleak Clients that handles transient connection failures
MIT License
11 stars 2 forks source link

fix: ensure timeouts work with py3.11 #102

Closed bdraco closed 1 year ago

bdraco commented 1 year ago

async_timeout < 4.0.3 did not work correctly with py3.11, we now use asyncio.timeout on py3.11

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 84.61% and project coverage change: +0.24% :tada:

Comparison is base (39380a7) 78.20% compared to head (718b9f4) 78.44%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #102 +/- ## ========================================== + Coverage 78.20% 78.44% +0.24% ========================================== Files 4 5 +1 Lines 445 450 +5 Branches 104 105 +1 ========================================== + Hits 348 353 +5 Misses 65 65 Partials 32 32 ``` | [Files Changed](https://app.codecov.io/gh/Bluetooth-Devices/bleak-retry-connector/pull/102?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices) | Coverage Δ | | |---|---|---| | [src/bleak\_retry\_connector/dbus.py](https://app.codecov.io/gh/Bluetooth-Devices/bleak-retry-connector/pull/102?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices#diff-c3JjL2JsZWFrX3JldHJ5X2Nvbm5lY3Rvci9kYnVzLnB5) | `52.63% <50.00%> (ø)` | | | [src/bleak\_retry\_connector/bluez.py](https://app.codecov.io/gh/Bluetooth-Devices/bleak-retry-connector/pull/102?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices#diff-c3JjL2JsZWFrX3JldHJ5X2Nvbm5lY3Rvci9ibHVlei5weQ==) | `80.44% <66.66%> (ø)` | | | [src/bleak\_retry\_connector/\_\_init\_\_.py](https://app.codecov.io/gh/Bluetooth-Devices/bleak-retry-connector/pull/102?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices#diff-c3JjL2JsZWFrX3JldHJ5X2Nvbm5lY3Rvci9fX2luaXRfXy5weQ==) | `77.55% <100.00%> (ø)` | | | [src/bleak\_retry\_connector/util.py](https://app.codecov.io/gh/Bluetooth-Devices/bleak-retry-connector/pull/102?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices#diff-c3JjL2JsZWFrX3JldHJ5X2Nvbm5lY3Rvci91dGlsLnB5) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.

:loudspeaker: Have feedback on the report? Share it here.