mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Only load stream when av package available (#23058)
This commit is contained in:
parent
05f267de6e
commit
b767232e50
@ -4,9 +4,14 @@ try:
|
||||
except ImportError:
|
||||
av = None
|
||||
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
DOMAIN = 'default_config'
|
||||
|
||||
|
||||
async def async_setup(hass, config):
|
||||
"""Initialize default configuration."""
|
||||
return True
|
||||
if av is None:
|
||||
return True
|
||||
|
||||
return await async_setup_component(hass, 'stream', config)
|
||||
|
@ -15,7 +15,6 @@
|
||||
"mobile_app",
|
||||
"person",
|
||||
"script",
|
||||
"stream",
|
||||
"sun",
|
||||
"system_health",
|
||||
"updater",
|
||||
|
Loading…
x
Reference in New Issue
Block a user