Add stream to the default config (#22602)

This commit is contained in:
Paulus Schoutsen 2019-03-31 17:14:19 -07:00 committed by Paulus Schoutsen
parent 2e61ead4fd
commit 0e42cb64d6

View File

@ -1,7 +1,11 @@
"""Component providing default configuration for new users."""
try:
import av
except ImportError:
av = None
DOMAIN = 'default_config'
DEPENDENCIES = (
DEPENDENCIES = [
'automation',
'cloud',
'config',
@ -17,7 +21,10 @@ DEPENDENCIES = (
'system_health',
'updater',
'zeroconf',
)
]
# Only automatically set up the stream component when dependency installed
if av is not None:
DEPENDENCIES.append('stream')
async def async_setup(hass, config):