mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Remove introduction component (#22944)
* Remove introduction component * Remove more usage
This commit is contained in:
parent
c4e31bc4df
commit
8582e390f8
@ -109,7 +109,6 @@ homeassistant/components/input_number/* @home-assistant/core
|
|||||||
homeassistant/components/input_select/* @home-assistant/core
|
homeassistant/components/input_select/* @home-assistant/core
|
||||||
homeassistant/components/input_text/* @home-assistant/core
|
homeassistant/components/input_text/* @home-assistant/core
|
||||||
homeassistant/components/integration/* @dgomes
|
homeassistant/components/integration/* @dgomes
|
||||||
homeassistant/components/introduction/* @home-assistant/core
|
|
||||||
homeassistant/components/ios/* @robbiet480
|
homeassistant/components/ios/* @robbiet480
|
||||||
homeassistant/components/ipma/* @dgomes
|
homeassistant/components/ipma/* @dgomes
|
||||||
homeassistant/components/irish_rail_transport/* @ttroy50
|
homeassistant/components/irish_rail_transport/* @ttroy50
|
||||||
|
@ -35,7 +35,6 @@ FIRST_INIT_COMPONENT = {
|
|||||||
'recorder',
|
'recorder',
|
||||||
'mqtt',
|
'mqtt',
|
||||||
'mqtt_eventstream',
|
'mqtt_eventstream',
|
||||||
'introduction',
|
|
||||||
'frontend',
|
'frontend',
|
||||||
'history',
|
'history',
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ from homeassistant import bootstrap
|
|||||||
import homeassistant.core as ha
|
import homeassistant.core as ha
|
||||||
from homeassistant.const import ATTR_ENTITY_ID, CONF_PLATFORM
|
from homeassistant.const import ATTR_ENTITY_ID, CONF_PLATFORM
|
||||||
|
|
||||||
DEPENDENCIES = ['conversation', 'introduction', 'zone']
|
DEPENDENCIES = ['conversation', 'zone']
|
||||||
DOMAIN = 'demo'
|
DOMAIN = 'demo'
|
||||||
|
|
||||||
COMPONENTS_WITH_DEMO_PLATFORM = [
|
COMPONENTS_WITH_DEMO_PLATFORM = [
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
"requirements": [],
|
"requirements": [],
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"conversation",
|
"conversation",
|
||||||
"introduction",
|
|
||||||
"zone"
|
"zone"
|
||||||
],
|
],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
|
@ -1,56 +0,0 @@
|
|||||||
"""Component that will help guide the user taking its first steps."""
|
|
||||||
import logging
|
|
||||||
|
|
||||||
import voluptuous as vol
|
|
||||||
|
|
||||||
DOMAIN = 'introduction'
|
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({
|
|
||||||
DOMAIN: vol.Schema({}),
|
|
||||||
}, extra=vol.ALLOW_EXTRA)
|
|
||||||
|
|
||||||
|
|
||||||
async def async_setup(hass, config=None):
|
|
||||||
"""Set up the introduction component."""
|
|
||||||
log = logging.getLogger(__name__)
|
|
||||||
log.info("""
|
|
||||||
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
Hello, and welcome to Home Assistant!
|
|
||||||
|
|
||||||
We'll hope that we can make all your dreams come true.
|
|
||||||
|
|
||||||
Here are some resources to get started:
|
|
||||||
|
|
||||||
- Configuring Home Assistant:
|
|
||||||
https://home-assistant.io/getting-started/configuration/
|
|
||||||
|
|
||||||
- Available components:
|
|
||||||
https://home-assistant.io/components/
|
|
||||||
|
|
||||||
- Troubleshooting your configuration:
|
|
||||||
https://home-assistant.io/getting-started/troubleshooting-configuration/
|
|
||||||
|
|
||||||
- Getting help:
|
|
||||||
https://home-assistant.io/help/
|
|
||||||
|
|
||||||
This message is generated by the introduction component. You can
|
|
||||||
disable it in configuration.yaml.
|
|
||||||
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
""")
|
|
||||||
|
|
||||||
hass.components.persistent_notification.async_create("""
|
|
||||||
Here are some resources to get started:
|
|
||||||
|
|
||||||
- [Configuring Home Assistant](https://home-assistant.io/getting-started/configuration/)
|
|
||||||
- [Available components](https://home-assistant.io/components/)
|
|
||||||
- [Troubleshooting your configuration](https://home-assistant.io/docs/configuration/troubleshooting/)
|
|
||||||
- [Getting help](https://home-assistant.io/help/)
|
|
||||||
|
|
||||||
To not see this card popup in the future, edit your config in
|
|
||||||
`configuration.yaml` and disable the `introduction` component.
|
|
||||||
""", 'Welcome Home!') # noqa
|
|
||||||
|
|
||||||
return True
|
|
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"domain": "introduction",
|
|
||||||
"name": "Introduction",
|
|
||||||
"documentation": "https://www.home-assistant.io/components/introduction",
|
|
||||||
"requirements": [],
|
|
||||||
"dependencies": [],
|
|
||||||
"codeowners": [
|
|
||||||
"@home-assistant/core"
|
|
||||||
]
|
|
||||||
}
|
|
@ -68,9 +68,6 @@ DEFAULT_CONFIG = """
|
|||||||
# Configure a default setup of Home Assistant (frontend, api, etc)
|
# Configure a default setup of Home Assistant (frontend, api, etc)
|
||||||
default_config:
|
default_config:
|
||||||
|
|
||||||
# Show the introduction message on startup.
|
|
||||||
introduction:
|
|
||||||
|
|
||||||
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
|
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
|
||||||
# http:
|
# http:
|
||||||
# base_url: example.duckdns.org:8123
|
# base_url: example.duckdns.org:8123
|
||||||
|
@ -1 +0,0 @@
|
|||||||
"""Tests for the introduction component."""
|
|
@ -1,23 +0,0 @@
|
|||||||
"""The tests for the Introduction component."""
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from homeassistant.setup import setup_component
|
|
||||||
from homeassistant.components import introduction
|
|
||||||
|
|
||||||
from tests.common import get_test_home_assistant
|
|
||||||
|
|
||||||
|
|
||||||
class TestIntroduction(unittest.TestCase):
|
|
||||||
"""Test Introduction."""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
"""Set up things to be run when tests are started."""
|
|
||||||
self.hass = get_test_home_assistant()
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
"""Stop down everything that was started."""
|
|
||||||
self.hass.stop()
|
|
||||||
|
|
||||||
def test_setup(self):
|
|
||||||
"""Test introduction setup."""
|
|
||||||
assert setup_component(self.hass, introduction.DOMAIN, {})
|
|
Loading…
x
Reference in New Issue
Block a user