1
0
mirror of https://github.com/esphome/esphome.git synced 2024-10-06 10:50:58 +01:00
This commit is contained in:
Otto Winter 2019-05-13 21:53:14 +02:00
parent 60d67e5428
commit dd79e37933
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -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)