Remove introduction component (#22944)

* Remove introduction component

* Remove more usage
This commit is contained in:
Paulus Schoutsen 2019-04-09 14:45:09 -07:00 committed by Jason Hu
parent c4e31bc4df
commit 8582e390f8
9 changed files with 1 additions and 97 deletions

View File

@ -109,7 +109,6 @@ homeassistant/components/input_number/* @home-assistant/core
homeassistant/components/input_select/* @home-assistant/core
homeassistant/components/input_text/* @home-assistant/core
homeassistant/components/integration/* @dgomes
homeassistant/components/introduction/* @home-assistant/core
homeassistant/components/ios/* @robbiet480
homeassistant/components/ipma/* @dgomes
homeassistant/components/irish_rail_transport/* @ttroy50

View File

@ -35,7 +35,6 @@ FIRST_INIT_COMPONENT = {
'recorder',
'mqtt',
'mqtt_eventstream',
'introduction',
'frontend',
'history',
}

View File

@ -6,7 +6,7 @@ from homeassistant import bootstrap
import homeassistant.core as ha
from homeassistant.const import ATTR_ENTITY_ID, CONF_PLATFORM
DEPENDENCIES = ['conversation', 'introduction', 'zone']
DEPENDENCIES = ['conversation', 'zone']
DOMAIN = 'demo'
COMPONENTS_WITH_DEMO_PLATFORM = [

View File

@ -5,7 +5,6 @@
"requirements": [],
"dependencies": [
"conversation",
"introduction",
"zone"
],
"codeowners": [

View File

@ -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

View File

@ -1,10 +0,0 @@
{
"domain": "introduction",
"name": "Introduction",
"documentation": "https://www.home-assistant.io/components/introduction",
"requirements": [],
"dependencies": [],
"codeowners": [
"@home-assistant/core"
]
}

View File

@ -68,9 +68,6 @@ DEFAULT_CONFIG = """
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Show the introduction message on startup.
introduction:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123

View File

@ -1 +0,0 @@
"""Tests for the introduction component."""

View File

@ -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, {})