Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions homeassistant/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 '
Expand Down