From d29b7f691075441ab52bcd90dad423a25d00b8e0 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 8 Feb 2017 23:18:23 +0100 Subject: [PATCH] Ffmpeg update 1.4 (#5813) * Pump ffmpeg version * update entity * next 1.4 --- homeassistant/components/ffmpeg.py | 9 ++++++++- requirements_all.txt | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/ffmpeg.py b/homeassistant/components/ffmpeg.py index 2bcc8932ae0..64a81687fd3 100644 --- a/homeassistant/components/ffmpeg.py +++ b/homeassistant/components/ffmpeg.py @@ -18,7 +18,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity DOMAIN = 'ffmpeg' -REQUIREMENTS = ["ha-ffmpeg==1.2"] +REQUIREMENTS = ["ha-ffmpeg==1.4"] _LOGGER = logging.getLogger(__name__) @@ -107,6 +107,13 @@ def async_setup(hass, config): if tasks: yield from asyncio.wait(tasks, loop=hass.loop) + tasks.clear() + for device in devices: + tasks.append(device.async_update_ha_state()) + + if tasks: + yield from asyncio.wait(tasks, loop=hass.loop) + hass.services.async_register( DOMAIN, SERVICE_START, async_service_handle, descriptions[DOMAIN].get(SERVICE_START), schema=SERVICE_FFMPEG_SCHEMA) diff --git a/requirements_all.txt b/requirements_all.txt index 3f267095551..7e75d925af2 100755 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -180,7 +180,7 @@ googlemaps==2.4.4 gps3==0.33.3 # homeassistant.components.ffmpeg -ha-ffmpeg==1.2 +ha-ffmpeg==1.4 # homeassistant.components.media_player.philips_js ha-philipsjs==0.0.1