python-kasa/kasa/credentials.py
sdb9696 f6fd898faf
Add DeviceConfig to allow specifying configuration parameters (#569)
* Add DeviceConfig handling

* Update post review

* Further update post latest review

* Update following latest review

* Update docstrings and docs
2023-12-29 20:17:15 +01:00

13 lines
315 B
Python

"""Credentials class for username / passwords."""
from dataclasses import dataclass, field
from typing import Optional
@dataclass
class Credentials:
"""Credentials for authentication."""
username: Optional[str] = field(default="", repr=False)
password: Optional[str] = field(default="", repr=False)