Clean up Tuya loggers (#62999)

This commit is contained in:
Franck Nijhof 2021-12-29 15:12:27 +01:00 committed by GitHub
parent bd98fc231d
commit 32d1e28dab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 17 deletions

View file

@ -1,7 +1,6 @@
"""Config flow for Tuya."""
from __future__ import annotations
import logging
from typing import Any
from tuya_iot import AuthType, TuyaOpenAPI
@ -19,6 +18,7 @@ from .const import (
CONF_PASSWORD,
CONF_USERNAME,
DOMAIN,
LOGGER,
SMARTLIFE_APP,
TUYA_COUNTRIES,
TUYA_RESPONSE_CODE,
@ -29,8 +29,6 @@ from .const import (
TUYA_SMART_APP,
)
_LOGGER = logging.getLogger(__name__)
class TuyaConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Tuya Config Flow."""
@ -78,7 +76,7 @@ class TuyaConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
schema=data[CONF_APP_TYPE],
)
_LOGGER.debug("Response %s", response)
LOGGER.debug("Response %s", response)
if response.get(TUYA_RESPONSE_SUCCESS, False):
break