Rename USER and PASS vars to be consistent
This commit is contained in:
parent
d5ac838705
commit
a125006b37
8
main.py
8
main.py
@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user