Only load stream when av package available (#23058)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-04-12 17:09:58 -07:00
1 parent 05f267de6e
commit b767232e50
2 files changed
+6 -2

No files matched your search

@@ -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)
@@ -15,7 +15,6 @@
"mobile_app",
"person",
"script",
"stream",
"sun",
"system_health",
"updater",