Closed realzoulou closed 2 years ago
@fishbigger I think all APIs returning a non-trivial result should follow one scheme. Either all return a dict, or all return a json string. Currently getDeviceInfo() is a bit of an exception.
Both getDeviceInfo and getEnergyUsage now return a json dict (2a15f46)
Uploaded to pypi in version 0.0.17.
Calling P100.getDeviceName() always results in Exception "the JSON object must be str, bytes or bytearray, not dict"
Introduced with PR https://github.com/fishbigger/TapoP100/pull/21
See my comment https://github.com/fishbigger/TapoP100/commit/7d3d25ba8d12ba2816b3ee50f918c4ad1a8fb74b#r63179338