mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add missing await for coroutine (#17609)
This commit is contained in:
parent
7baffed7b7
commit
88ec73ed8f
@ -32,7 +32,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||||||
async def async_setup_platform(hass, config, async_add_entities,
|
async def async_setup_platform(hass, config, async_add_entities,
|
||||||
discovery_info=None):
|
discovery_info=None):
|
||||||
"""Set up a FFmpeg camera."""
|
"""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
|
return
|
||||||
async_add_entities([FFmpegCamera(hass, config)])
|
async_add_entities([FFmpegCamera(hass, config)])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user