ikalchev / HAP-python

A python implementation of the HomeKit Accessory Protocol (HAP)
Other
607 stars 116 forks source link

Switch timeouts to use async_timeout #447

Closed bdraco closed 11 months ago

bdraco commented 11 months ago

async_timeout does not suffer from the same race problems as asyncio.wait_for

see https://github.com/python/cpython/pull/98518 for more details

codecov[bot] commented 11 months ago

Codecov Report

Merging #447 (962f55e) into dev (54d174d) will increase coverage by 0.02%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #447      +/-   ##
==========================================
+ Coverage   91.59%   91.61%   +0.02%     
==========================================
  Files          20       20              
  Lines        2176     2183       +7     
  Branches      273      276       +3     
==========================================
+ Hits         1993     2000       +7     
  Misses        139      139              
  Partials       44       44              
Impacted Files Coverage Δ
pyhap/accessory.py 96.71% <ø> (ø)
pyhap/hsrp.py 100.00% <ø> (ø)
pyhap/camera.py 77.44% <100.00%> (+0.07%) :arrow_up:
pyhap/hap_handler.py 81.12% <100.00%> (+0.19%) :arrow_up:
pyhap/util.py 100.00% <100.00%> (ø)