mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-23 15:58:02 +00:00
Fix cli discover bug with None username/password (#615)
This commit is contained in:
@@ -64,7 +64,9 @@ class AesTransport(BaseTransport):
|
||||
super().__init__(config=config)
|
||||
|
||||
self._login_version = config.connection_type.login_version
|
||||
if not self._credentials and not self._credentials_hash:
|
||||
if (
|
||||
not self._credentials or self._credentials.username is None
|
||||
) and not self._credentials_hash:
|
||||
self._credentials = Credentials()
|
||||
if self._credentials:
|
||||
self._login_params = self._get_login_params()
|
||||
|
Reference in New Issue
Block a user