updating to latest

This commit is contained in:
root
2021-11-04 01:18:18 -04:00
parent f92b773514
commit 7eadb4c49c
153 changed files with 19015 additions and 5168 deletions

View File

@@ -0,0 +1,19 @@
"""Custom logger for HACS."""
# pylint: disable=invalid-name
import logging
import os
from ..const import PACKAGE_NAME
_HACSLogger: logging.Logger = logging.getLogger(PACKAGE_NAME)
if "GITHUB_ACTION" in os.environ:
logging.basicConfig(
format="::%(levelname)s:: %(message)s",
level="DEBUG",
)
def getLogger(_name: str = None) -> logging.Logger:
"""Return a Logger instance."""
return _HACSLogger