Do not warn for internally loaded components (#21287)

This commit is contained in:
Paulus Schoutsen 2019-02-21 14:57:38 -08:00 committed by GitHub
parent d9a44f2a78
commit ac502980a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ def get_platform(hass, # type: HomeAssistant
"""
# If the platform has a component, we will limit the platform loading path
# to be the same source (custom/built-in).
component = get_component(hass, platform_name)
component = _load_file(hass, platform_name, LOOKUP_PATHS)
# Until we have moved all platforms under their component/own folder, it
# can be that the component is None.
@ -181,7 +181,7 @@ def _load_file(hass, # type: HomeAssistant
cache[comp_or_platform] = module
if index == 0:
if module.__name__.startswith(PACKAGE_CUSTOM_COMPONENTS):
_LOGGER.warning(
'You are using a custom component for %s which has not '
'been tested by Home Assistant. This component might '