Danielhiversen / flux_led

A utility for controlling Flux WiFi Smart LED Light Bulbs
GNU Lesser General Public License v3.0
155 stars 143 forks source link

Improve recovery times when wifi is flakey #388

Closed bdraco closed 1 year ago

bdraco commented 1 year ago

https://github.com/home-assistant/core/issues/84684

Try to reconnect sooner if device drops connection

The tradeoff here is more network traffic unfortunately....

codecov-commenter commented 1 year ago

Codecov Report

Merging #388 (89f92b7) into master (1f76d22) will decrease coverage by 0.06%. The diff coverage is 90.62%.

@@            Coverage Diff             @@
##           master     #388      +/-   ##
==========================================
- Coverage   93.86%   93.80%   -0.06%     
==========================================
  Files          16       16              
  Lines        3177     3179       +2     
==========================================
  Hits         2982     2982              
- Misses        195      197       +2     
Impacted Files Coverage Δ
flux_led/protocol.py 99.32% <ø> (ø)
flux_led/scanner.py 80.95% <ø> (ø)
flux_led/utils.py 98.81% <ø> (ø)
flux_led/sock.py 70.83% <50.00%> (ø)
flux_led/aiodevice.py 98.52% <90.00%> (-0.44%) :arrow_down:
flux_led/base_device.py 97.92% <100.00%> (+0.01%) :arrow_up:
flux_led/device.py 76.31% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.