Fix platform discovery when platform discovered during discovery of a (#4529)

component
This commit is contained in:
Paulus Schoutsen 2016-11-22 08:21:08 -08:00 committed by GitHub
parent 5d18759146
commit c81735cc84

View File

@ -151,7 +151,6 @@ def async_load_platform(hass, component, platform, discovered=None,
This method is a coroutine. This method is a coroutine.
""" """
did_lock = False did_lock = False
if component not in hass.config.components:
setup_lock = hass.data.get('setup_lock') setup_lock = hass.data.get('setup_lock')
if setup_lock and setup_lock.locked(): if setup_lock and setup_lock.locked():
did_lock = True did_lock = True