From dd79e37933a6a9897cffd3c37e085d2cf499b313 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Mon, 13 May 2019 21:53:14 +0200 Subject: [PATCH] Lint --- esphome/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/config.py b/esphome/config.py index 3333712aad..ad86811f19 100644 --- a/esphome/config.py +++ b/esphome/config.py @@ -141,7 +141,7 @@ def _lookup_module(domain, is_platform): except ImportError as e: # ImportError when no such module if 'No module named' not in str(e): - _LOGGER.warn("Unable to import custom component %s:", domain, exc_info=True) + _LOGGER.warning("Unable to import custom component %s:", domain, exc_info=True) except Exception: # pylint: disable=broad-except # Other error means component has an issue _LOGGER.error("Unable to load custom component %s:", domain, exc_info=True)