Cleanup credentials handling (#605)

* credentials: don't allow none to simplify checks

* Implement __bool__ for credentials

* Cleanup klaptransport cred usage

* Cleanup deviceconfig and tapodevice

* fix linting

* Pass dummy credentials for tests

* Remove __bool__ dunder and add docs to credentials

* Check for cred noneness in tapodevice.update()
This commit is contained in:
Teemu R
2024-01-03 19:26:52 +01:00
committed by GitHub
parent 10fc2c3c54
commit 30c4e6a6a3
7 changed files with 29 additions and 17 deletions

View File

@@ -26,6 +26,7 @@ class AuthenticationException(SmartDeviceException):
class RetryableException(SmartDeviceException):
"""Retryable exception for device errors."""
class TimeoutException(SmartDeviceException):
"""Timeout exception for device errors."""