mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +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."""
|
"""Component providing default configuration for new users."""
|
||||||
|
try:
|
||||||
|
import av
|
||||||
|
except ImportError:
|
||||||
|
av = None
|
||||||
|
|
||||||
DOMAIN = 'default_config'
|
DOMAIN = 'default_config'
|
||||||
DEPENDENCIES = (
|
DEPENDENCIES = [
|
||||||
'automation',
|
'automation',
|
||||||
'cloud',
|
'cloud',
|
||||||
'config',
|
'config',
|
||||||
@ -17,7 +21,10 @@ DEPENDENCIES = (
|
|||||||
'system_health',
|
'system_health',
|
||||||
'updater',
|
'updater',
|
||||||
'zeroconf',
|
'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):
|
async def async_setup(hass, config):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user