Skip to content

Commit

Permalink
Add stream to the default config (#22602)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Apr 1, 2019
1 parent e085383 commit 50a0504
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions homeassistant/components/default_config/__init__.py
@@ -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',
Expand All @@ -17,7 +21,10 @@
'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):
Expand Down

0 comments on commit 50a0504

Please sign in to comment.