mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
7bb4a456a2
* Add plumbing for passing credentials as far as discovery * Pass credentials to Smart devices * Rename authentication exception * Fix tests failure due to test_json_output leaving echo as nop * Fix test_credentials test * Do not print credentials, fix echo function bug and improve get type parameter * Add device class constructor test * Add comment for echo handling and move assignment
14 lines
353 B
Python
14 lines
353 B
Python
"""python-kasa exceptions."""
|
|
|
|
|
|
class SmartDeviceException(Exception):
|
|
"""Base exception for device errors."""
|
|
|
|
|
|
class UnsupportedDeviceException(SmartDeviceException):
|
|
"""Exception for trying to connect to unsupported devices."""
|
|
|
|
|
|
class AuthenticationException(SmartDeviceException):
|
|
"""Base exception for device authentication errors."""
|