Only load stream when av package available (#23058)

This commit is contained in:
Paulus Schoutsen 2019-04-12 17:09:58 -07:00 committed by GitHub
parent 05f267de6e
commit b767232e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -4,9 +4,14 @@ try:
except ImportError:
av = None
from homeassistant.setup import async_setup_component
DOMAIN = 'default_config'
async def async_setup(hass, config):
"""Initialize default configuration."""
return True
if av is None:
return True
return await async_setup_component(hass, 'stream', config)

View File

@ -15,7 +15,6 @@
"mobile_app",
"person",
"script",
"stream",
"sun",
"system_health",
"updater",