Batch of Component(s) -> Integration(s) (#24972)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2019-07-05 15:24:26 -07:00
1 parent e75c9efb3f
commit 31f569ada9
27 files changed
+34 -34

No files matched your search

+2 -2
View File
@@ -227,7 +227,7 @@ class IntegrationNotFound(LoaderError):
def __init__(self, domain: str) -> None:
"""Initialize a component not found error."""
super().__init__("Component {} not found.".format(domain))
super().__init__("Integration {} not found.".format(domain))
self.domain = domain
@@ -429,7 +429,7 @@ def _async_mount_config_dir(hass, # type: HomeAssistant
Async friendly but not a coroutine.
"""
if hass.config.config_dir is None:
_LOGGER.error("Can't load components - config dir is not set")
_LOGGER.error("Can't load integrations - config dir is not set")
return False
if hass.config.config_dir not in sys.path:
sys.path.insert(0, hass.config.config_dir)