Add retries to protocol queries (#65)

* Add retries to query(), defaults to 3 + add tests

* Catch also json decoding errors for retries

* add missing exceptions file, fix old protocol tests
This commit is contained in:
Teemu R
2020-05-27 19:02:09 +02:00
committed by GitHub
parent 644a10a0d1
commit 9dc0cbaece
6 changed files with 150 additions and 94 deletions

5
kasa/exceptions.py Normal file
View File

@@ -0,0 +1,5 @@
"""python-kasa exceptions."""
class SmartDeviceException(Exception):
"""Base exception for device errors."""