1
mirror of https://github.com/home-assistant/core synced 2024-10-07 10:13:38 +02:00

Add missing await for coroutine (#17609)

This commit is contained in:
jjlawren 2018-10-19 02:10:41 -05:00 committed by Daniel Høyer Iversen
parent 7baffed7b7
commit 88ec73ed8f

View File

@ -32,7 +32,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
async def async_setup_platform(hass, config, async_add_entities,
discovery_info=None):
"""Set up a FFmpeg camera."""
if not hass.data[DATA_FFMPEG].async_run_test(config.get(CONF_INPUT)):
if not await hass.data[DATA_FFMPEG].async_run_test(config.get(CONF_INPUT)):
return
async_add_entities([FFmpegCamera(hass, config)])