Skip to content

Commit

Permalink
[fix] logger error in fan and humidifier
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsuku committed Jun 30, 2021
1 parent af0eb62 commit e50d830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/tuya_v2/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions custom_components/tuya_v2/humidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e50d830

Please sign in to comment.