Add log level env var

This commit is contained in:
Brian Whicheloe 2024-10-14 13:14:38 -07:00
parent 2cca26ada4
commit b34d981723

View file

@ -52,6 +52,8 @@ if TYPE_CHECKING:
from requests import Response
LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO").upper()
logging.getLogger().setLevel(LOG_LEVEL)
_LOGGER = logging.getLogger(__name__)
ENV_DEV = "ESPHOME_DASHBOARD_DEV"