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:
|
except ImportError:
|
||||||
av = None
|
av = None
|
||||||
|
|
||||||
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
DOMAIN = 'default_config'
|
DOMAIN = 'default_config'
|
||||||
|
|
||||||
|
|
||||||
async def async_setup(hass, config):
|
async def async_setup(hass, config):
|
||||||
"""Initialize default configuration."""
|
"""Initialize default configuration."""
|
||||||
|
if av is None:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
return await async_setup_component(hass, 'stream', config)
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
"mobile_app",
|
"mobile_app",
|
||||||
"person",
|
"person",
|
||||||
"script",
|
"script",
|
||||||
"stream",
|
|
||||||
"sun",
|
"sun",
|
||||||
"system_health",
|
"system_health",
|
||||||
"updater",
|
"updater",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user