mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Add stream to the default config (#22602)
This commit is contained in:
parent
e085383d2d
commit
50a0504e07
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user