mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-08 16:38:01 +00:00
Let caller handle SMART errors on multi-requests (#754)
* Fix for missing get_device_usage * Fix coverage and add methods to exceptions * Remove unused caplog fixture
This commit is contained in:
@@ -45,6 +45,9 @@ class ConnectionException(SmartDeviceException):
|
||||
class SmartErrorCode(IntEnum):
|
||||
"""Enum for SMART Error Codes."""
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.name}({self.value})"
|
||||
|
||||
SUCCESS = 0
|
||||
|
||||
# Transport Errors
|
||||
|
Reference in New Issue
Block a user