From e50d830cbf82d81f89a190b54ae2dd7f7db3c27b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=BE=E5=90=AF?= <18442047+tsutsuku@users.noreply.github.com> Date: Wed, 30 Jun 2021 20:41:49 +0800 Subject: [PATCH] [fix] logger error in fan and humidifier --- custom_components/tuya_v2/fan.py | 2 +- custom_components/tuya_v2/humidifier.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/tuya_v2/fan.py b/custom_components/tuya_v2/fan.py index 6c761b7..44ede4a 100644 --- a/custom_components/tuya_v2/fan.py +++ b/custom_components/tuya_v2/fan.py @@ -53,7 +53,7 @@ async def async_setup_entry( async def async_discover_device(dev_ids): """Discover and add a discovered tuya fan.""" - _LOGGER(f"fan add-> {dev_ids}") + _LOGGER.info(f"fan add-> {dev_ids}") if not dev_ids: return entities = await hass.async_add_executor_job(_setup_entities, hass, dev_ids) diff --git a/custom_components/tuya_v2/humidifier.py b/custom_components/tuya_v2/humidifier.py index 3b0fed2..543eeca 100644 --- a/custom_components/tuya_v2/humidifier.py +++ b/custom_components/tuya_v2/humidifier.py @@ -39,13 +39,13 @@ async def async_setup_entry( hass: HomeAssistant, _entry: ConfigEntry, async_add_entities ): """Set up tuya sensors dynamically through tuya discovery.""" - _LOGGER("humidifier init") + _LOGGER.info("humidifier init") hass.data[DOMAIN][TUYA_HA_TUYA_MAP].update({DEVICE_DOMAIN: TUYA_SUPPORT_TYPE}) async def async_discover_device(dev_ids): """Discover and add a discovered tuya sensor.""" - _LOGGER(f"humidifier add-> {dev_ids}") + _LOGGER.info(f"humidifier add-> {dev_ids}") if not dev_ids: return entities = await hass.async_add_executor_job(_setup_entities, hass, dev_ids)