From 48792763f949586e4222629b664ba4ba57eeb89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20H=C3=BCskes?= Date: Sat, 10 Feb 2024 14:18:07 +0100 Subject: [PATCH] Use credentials from settings.py --- test_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_api.py b/test_api.py index dc5b59c..91f799b 100644 --- a/test_api.py +++ b/test_api.py @@ -8,6 +8,7 @@ import sys from aiohttp import ClientSession from api import api +from settings import * _LOGGER: logging.Logger = logging.getLogger(__name__) _LOGGER.addHandler(logging.StreamHandler(sys.stdout)) @@ -23,7 +24,7 @@ async def main() -> None: try: async with ClientSession() as websession: myapi = api.AnkerSolixApi( - "username@domain.com", "password", "de", websession, _LOGGER + USER, PASSWORD, COUNTRY, websession, _LOGGER ) # show login response