mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-01-29 23:19:59 +00:00
Add concrete XorTransport class with full implementation (#646)
* Add concrete XorTransport class * Update xortransport reset() docstring
This commit is contained in:
@@ -60,7 +60,7 @@ class BaseTransport(ABC):
|
||||
self._port = config.port_override or self.default_port
|
||||
self._credentials = config.credentials
|
||||
self._credentials_hash = config.credentials_hash
|
||||
self._timeout = config.timeout
|
||||
self._timeout = config.timeout or self.DEFAULT_TIMEOUT
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
@@ -124,6 +124,7 @@ class _XorTransport(BaseTransport):
|
||||
"""
|
||||
|
||||
DEFAULT_PORT: int = 9999
|
||||
BLOCK_SIZE = 4
|
||||
|
||||
def __init__(self, *, config: DeviceConfig) -> None:
|
||||
super().__init__(config=config)
|
||||
|
||||
Reference in New Issue
Block a user