openwrt / asu

An image on demand server for OpenWrt based distributions
https://sysupgrade.openwrt.org
GNU General Public License v2.0
332 stars 83 forks source link

main: rework deprecated 'on_event' use #906

Closed efahl closed 3 months ago

efahl commented 3 months ago

Replace the deprecated 'on_event' hook with the current 'lifespan' context manager. Eliminates warnings during run and tests.

Signed-off-by: Eric Fahlgren ericfahlgren@gmail.com

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 50.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 81.88%. Comparing base (5e65dec) to head (59ba4bd). Report is 66 commits behind head on main.

Files Patch % Lines
asu/main.py 50.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #906 +/- ## ========================================== + Coverage 80.75% 81.88% +1.13% ========================================== Files 15 13 -2 Lines 977 900 -77 ========================================== - Hits 789 737 -52 + Misses 188 163 -25 ```

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