Add stream to the default config (#22602)

This commit is contained in:
Paulus Schoutsen 2019-03-31 17:14:19 -07:00 committed by GitHub
parent e085383d2d
commit 50a0504e07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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):