Bugfix if ffmpeg is not present on config / Update ha-ffmpeg 0.13 (#3418)

This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2016-09-17 22:57:18 -07:00
1 parent 81928b1a6b
commit 534f56a3e2
2 files changed
+8 -6

No files matched your search

+7 -5
View File
@@ -11,7 +11,7 @@ import voluptuous as vol
import homeassistant.helpers.config_validation as cv
DOMAIN = 'ffmpeg'
REQUIREMENTS = ["ha-ffmpeg==0.12"]
REQUIREMENTS = ["ha-ffmpeg==0.13"]
_LOGGER = logging.getLogger(__name__)
@@ -32,15 +32,17 @@ CONFIG_SCHEMA = vol.Schema({
}, extra=vol.ALLOW_EXTRA)
FFMPEG_CONFIG = {}
FFMPEG_CONFIG = {
CONF_FFMPEG_BIN: DEFAULT_BINARY,
CONF_RUN_TEST: DEFAULT_RUN_TEST,
}
FFMPEG_TEST_CACHE = {}
def setup(hass, config):
"""Setup the FFmpeg component."""
global FFMPEG_CONFIG
FFMPEG_CONFIG = config.get(DOMAIN)
if DOMAIN in config:
FFMPEG_CONFIG.update(config.get(DOMAIN))
return True
+1 -1
View File
@@ -115,7 +115,7 @@ googlemaps==2.4.4
gps3==0.33.3
# homeassistant.components.ffmpeg
ha-ffmpeg==0.12
ha-ffmpeg==0.13
# homeassistant.components.mqtt.server
hbmqtt==0.7.1