mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
Lint
This commit is contained in:
parent
427ed2fb5f
commit
8ec7aebb2b
@ -141,7 +141,7 @@ def _lookup_module(domain, is_platform):
|
|||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
# ImportError when no such module
|
# ImportError when no such module
|
||||||
if 'No module named' not in str(e):
|
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
|
except Exception: # pylint: disable=broad-except
|
||||||
# Other error means component has an issue
|
# Other error means component has an issue
|
||||||
_LOGGER.error("Unable to load custom component %s:", domain, exc_info=True)
|
_LOGGER.error("Unable to load custom component %s:", domain, exc_info=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user