Skip to content

Commit

Permalink
Add missing await for coroutine (#17609)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlawren authored and Danielhiversen committed Oct 19, 2018
1 parent 7baffed commit 88ec73e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/camera/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
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)])

Expand Down

0 comments on commit 88ec73e

Please sign in to comment.