Add "stream" to default_config (#90153)

* add stream to manifest

* Update __init__.py

remove av check from init

* Update homeassistant/components/default_config/__init__.py

* Update requirements

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
Trevor Bernard 2023-03-27 12:57:56 -05:00 committed by GitHub
parent b033232b06
commit d59e2b1349
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 10 deletions

View file

@ -1,10 +1,4 @@
"""Component providing default configuration for new users.""" """Component providing default configuration for new users."""
try:
import av
except ImportError:
av = None
from homeassistant.components.hassio import is_hassio from homeassistant.components.hassio import is_hassio
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant
from homeassistant.helpers.typing import ConfigType from homeassistant.helpers.typing import ConfigType
@ -18,7 +12,4 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
if not is_hassio(hass): if not is_hassio(hass):
await async_setup_component(hass, "backup", config) await async_setup_component(hass, "backup", config)
if av is None:
return True return True
return await async_setup_component(hass, "stream", config)

View file

@ -33,6 +33,7 @@
"schedule", "schedule",
"script", "script",
"ssdp", "ssdp",
"stream",
"sun", "sun",
"system_health", "system_health",
"tag", "tag",

View file

@ -1,5 +1,6 @@
PyJWT==2.6.0 PyJWT==2.6.0
PyNaCl==1.5.0 PyNaCl==1.5.0
PyTurboJPEG==1.6.7
aiodiscover==1.4.14 aiodiscover==1.4.14
aiohttp==3.8.4 aiohttp==3.8.4
aiohttp_cors==0.7.0 aiohttp_cors==0.7.0
@ -20,6 +21,7 @@ ciso8601==2.3.0
cryptography==40.0.1 cryptography==40.0.1
dbus-fast==1.84.2 dbus-fast==1.84.2
fnvhash==0.1.0 fnvhash==0.1.0
ha-av==10.0.0
hass-nabucasa==0.62.0 hass-nabucasa==0.62.0
hassil==1.0.6 hassil==1.0.6
home-assistant-bluetooth==1.9.3 home-assistant-bluetooth==1.9.3