From a125006b378880b4ad2b54ad6c89c290945b4707 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Mon, 20 Nov 2023 10:27:00 -0800 Subject: [PATCH] Rename USER and PASS vars to be consistent --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index f8b1d49..86e1a56 100644 --- a/main.py +++ b/main.py @@ -13,8 +13,8 @@ from aiounifi.models.traffic_route import MatchingTarget HOST = os.getenv("UNIFI_HOST", "192.168.1.1") PORT = int(os.getenv("UNIFI_PORT", 443)) -USERNAME = os.getenv("UNIFI_USER") -PASSWORD = os.getenv("UNIFI_PASS") +USER = os.getenv("UNIFI_USER") +PASS = os.getenv("UNIFI_PASS") LOGGER = logging.getLogger(__name__) @@ -24,8 +24,8 @@ def get_configuration(session: aiohttp.ClientSession) -> Configuration: return Configuration( session, HOST, - username=USERNAME, - password=PASSWORD, + username=USER, + password=PASS, port=PORT, )