Rename USER and PASS vars to be consistent
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
IamTheFij 2023-11-20 10:27:00 -08:00
parent d5ac838705
commit a125006b37

View File

@ -13,8 +13,8 @@ from aiounifi.models.traffic_route import MatchingTarget
HOST = os.getenv("UNIFI_HOST", "192.168.1.1") HOST = os.getenv("UNIFI_HOST", "192.168.1.1")
PORT = int(os.getenv("UNIFI_PORT", 443)) PORT = int(os.getenv("UNIFI_PORT", 443))
USERNAME = os.getenv("UNIFI_USER") USER = os.getenv("UNIFI_USER")
PASSWORD = os.getenv("UNIFI_PASS") PASS = os.getenv("UNIFI_PASS")
LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__)
@ -24,8 +24,8 @@ def get_configuration(session: aiohttp.ClientSession) -> Configuration:
return Configuration( return Configuration(
session, session,
HOST, HOST,
username=USERNAME, username=USER,
password=PASSWORD, password=PASS,
port=PORT, port=PORT,
) )