mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Update config.py
This commit is contained in:
		| @@ -155,9 +155,7 @@ def _lookup_module(domain, is_platform): | |||||||
|     try: |     try: | ||||||
|         module = importlib.import_module('esphome.components.{}'.format(domain)) |         module = importlib.import_module('esphome.components.{}'.format(domain)) | ||||||
|     except ImportError as e: |     except ImportError as e: | ||||||
|         if 'No module named' in str(e): |         if 'No module named' not in str(e): | ||||||
|             _LOGGER.error("Unable to import component %s:", domain) |  | ||||||
|         else: |  | ||||||
|             _LOGGER.error("Unable to import component %s:", domain, exc_info=True) |             _LOGGER.error("Unable to import component %s:", domain, exc_info=True) | ||||||
|         return None |         return None | ||||||
|     except Exception:  # pylint: disable=broad-except |     except Exception:  # pylint: disable=broad-except | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user