python-kasa/kasa
J. Nick Koston e31cc6662c
Keep connection open and lock to prevent duplicate requests (#213)
* Keep connection open and lock to prevent duplicate requests

* option to not update children

* tweaks

* typing

* tweaks

* run tests in the same event loop

* memorize model

* Update kasa/protocol.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Update kasa/protocol.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Update kasa/protocol.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Update kasa/protocol.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* dry

* tweaks

* warn when the event loop gets switched out from under us

* raise on unable to connect multiple times

* fix patch target

* tweaks

* isrot

* reconnect test

* prune

* fix mocking

* fix mocking

* fix test under python 3.7

* fix test under python 3.7

* less patching

* isort

* use mocker to patch

* disable on old python since mocking doesnt work

* avoid disconnect/reconnect cycles

* isort

* Fix hue validation

* Fix latitude_i/longitude_i units

Co-authored-by: Teemu R. <tpr@iki.fi>
2021-09-24 23:25:43 +02:00
..
tests Keep connection open and lock to prevent duplicate requests (#213) 2021-09-24 23:25:43 +02:00
__init__.py Improve emeterstatus API, move into own module (#205) 2021-09-23 17:58:19 +02:00
cli.py Cleanup discovery & add tests (#212) 2021-09-24 17:18:11 +02:00
discover.py Keep connection open and lock to prevent duplicate requests (#213) 2021-09-24 23:25:43 +02: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 Keep connection open and lock to prevent duplicate requests (#213) 2021-09-24 23:25:43 +02:00
smartbulb.py Improve emeterstatus API, move into own module (#205) 2021-09-23 17:58:19 +02:00
smartdevice.py Keep connection open and lock to prevent duplicate requests (#213) 2021-09-24 23:25:43 +02:00
smartdimmer.py Add --transition to bulb-specific cli commands, fix turn_{on,off} signatures (#81) 2020-07-06 16:10:28 +02:00
smartlightstrip.py Add support for lightstrips (KL430) (#74) 2020-07-19 22:32:17 +02:00
smartplug.py Add --transition to bulb-specific cli commands, fix turn_{on,off} signatures (#81) 2020-07-06 16:10:28 +02:00
smartstrip.py Keep connection open and lock to prevent duplicate requests (#213) 2021-09-24 23:25:43 +02:00