Use credentials from settings.py
This commit is contained in:
parent
b537d3ed4d
commit
48792763f9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue