Skip to content

Commit e15e99f

Browse files
authored
Remove startup message (#30)
1 parent a45a58b commit e15e99f

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

custom_components/readme/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from homeassistant.setup import async_get_loaded_integrations
2828
from jinja2 import Template
2929

30-
from .const import DOMAIN, DOMAIN_DATA, LOGGER, STARTUP_MESSAGE
30+
from .const import DOMAIN, DOMAIN_DATA, LOGGER
3131

3232
CONFIG_SCHEMA = vol.Schema(
3333
{DOMAIN: vol.Schema({vol.Optional("convert_lovelace"): cv.boolean})},
@@ -41,9 +41,6 @@ async def async_setup(hass: HomeAssistant, config: dict):
4141
# We get her if the integration is set up using config flow
4242
return True
4343

44-
# Print startup message
45-
LOGGER.info(STARTUP_MESSAGE)
46-
4744
# Create DATA dict
4845
hass.data.setdefault(DOMAIN_DATA, config[DOMAIN])
4946

@@ -71,9 +68,6 @@ async def async_setup_entry(hass: HomeAssistant, config_entry):
7168
)
7269
return True
7370

74-
# Print startup message
75-
LOGGER.info(STARTUP_MESSAGE)
76-
7771
# Create DATA dict
7872
hass.data[DOMAIN_DATA] = config_entry.data
7973

custom_components/readme/const.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,5 @@
66

77
DOMAIN = "readme"
88
DOMAIN_DATA = "readme_data"
9-
INTEGRATION_VERSION = "0.6.0"
109

1110
ISSUE_URL = "https://github.com/custom-components/readme/issues"
12-
13-
14-
STARTUP_MESSAGE = f"""
15-
-------------------------------------------------------------------
16-
{DOMAIN}
17-
Version: {INTEGRATION_VERSION}
18-
This is a custom integration
19-
If you have any issues with this you need to open an issue here:
20-
{ISSUE_URL}
21-
-------------------------------------------------------------------
22-
"""

0 commit comments

Comments
 (0)