mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-11-16 23:28:43 +00:00
Add tests and pretty output for HS220, fix minor issues in tests
This commit is contained in:
@@ -119,6 +119,9 @@ class SmartDevice(object):
|
||||
raise SmartDeviceException("Error on {}.{}: {}"
|
||||
.format(target, cmd, result))
|
||||
|
||||
if cmd not in result:
|
||||
raise SmartDeviceException("No command in response: {}"
|
||||
.format(response))
|
||||
result = result[cmd]
|
||||
del result["err_code"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user