Camera Preferences + Preload Stream (#22339)

* initial commit for camera preferences and preload stream

* cleanup and add tests

* respect camera preferences on each request stream call

* return the new prefs after update
This commit is contained in:
Jason Hunter authored and GitHub committed 2019-03-26 08:31:29 -04:00
1 parent baa4945944
commit bad0a8b342
11 files changed
+252 -22

No files matched your search

+2 -1
View File
@@ -14,7 +14,8 @@ import aiohttp
import async_timeout
from homeassistant.components.camera import Camera, PLATFORM_SCHEMA,\
STATE_IDLE, STATE_RECORDING, DOMAIN
STATE_IDLE, STATE_RECORDING
from homeassistant.components.camera.const import DOMAIN
from homeassistant.core import callback
from homeassistant.const import CONF_NAME, CONF_TIMEOUT, CONF_WEBHOOK_ID
from homeassistant.helpers import config_validation as cv