python-kasa/kasa
J. Nick Koston d908a5ab2a
Avoid retrying open_connection on unrecoverable errors (#340)
* Avoid retrying open_connection on unrecoverable errors

- We can retry so hard that we block the event loop

Fixes
```
2022-04-16 22:18:51 WARNING (MainThread) [asyncio] Executing <Task finished name=Task-3576 coro=<open_connection() done, defined at /opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/streams.py:25> exception=ConnectionRefusedError(61, "Connect call failed (192.168.107.200, 9999)") created at /opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/tasks.py:460> took 1.001 seconds
```

* comment
2022-04-24 19:38:42 +02:00
..
modules Export modules & make sphinx happy (#334) 2022-04-06 01:41:08 +02:00
tests Avoid retrying open_connection on unrecoverable errors (#340) 2022-04-24 19:38:42 +02:00
__init__.py Improve emeterstatus API, move into own module (#205) 2021-09-23 17:58:19 +02:00
cli.py Drop deprecated, type-specific options in favor of --type (#336) 2022-04-06 03:39:50 +02:00
discover.py Do not crash on discovery on WSL (#283) 2022-01-08 17:48:01 +01:00
effects.py Add effect support for light strips (#293) 2022-03-21 22:10:12 +01:00
emeterstatus.py Improve emeterstatus API, move into own module (#205) 2021-09-23 17:58:19 +02:00
exceptions.py Add retries to protocol queries (#65) 2020-05-27 20:02:09 +03:00
protocol.py Avoid retrying open_connection on unrecoverable errors (#340) 2022-04-24 19:38:42 +02:00
py.typed Add py.typed to flag that the package is typed (#251) 2021-11-15 18:21:24 +01:00
smartbulb.py Export modules & make sphinx happy (#334) 2022-04-06 01:41:08 +02:00
smartdevice.py Fix modularize with strips (#326) 2022-04-05 19:27:46 +02:00
smartdimmer.py Export modules & make sphinx happy (#334) 2022-04-06 01:41:08 +02:00
smartlightstrip.py Add effect support for light strips (#293) 2022-03-21 22:10:12 +01:00
smartplug.py Export modules & make sphinx happy (#334) 2022-04-06 01:41:08 +02:00
smartstrip.py Export modules & make sphinx happy (#334) 2022-04-06 01:41:08 +02:00