1
0
Fork 0

Use credentials from settings.py

This commit is contained in:
Robin Hüskes 2024-02-10 14:04:26 +01:00
parent 9bb4445fd9
commit 966607fff5
1 changed files with 1 additions and 6 deletions

View File

@ -18,6 +18,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))
@ -26,12 +27,6 @@ CONSOLE: logging.Logger = logging.getLogger("console")
CONSOLE.addHandler(logging.StreamHandler(sys.stdout))
CONSOLE.setLevel(logging.INFO)
# Optional default Anker Account credentials to be used
USER = ""
PASSWORD = ""
COUNTRY = ""
async def main() -> None:
"""Run main to export energy history from cloud."""
global USER, PASSWORD, COUNTRY # noqa: PLW0603