Skip to content

Commit

Permalink
Clean constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tetienne committed Dec 12, 2020
1 parent b93c54f commit 51a60e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
2 changes: 0 additions & 2 deletions custom_components/veolia/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
COORDINATOR,
DOMAIN,
PLATFORMS,
STARTUP_MESSAGE,
)

SCAN_INTERVAL = timedelta(days=1)
Expand All @@ -39,7 +38,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
"""Set up this integration using UI."""
if hass.data.get(DOMAIN) is None:
hass.data.setdefault(DOMAIN, {})
_LOGGER.info(STARTUP_MESSAGE)

username = entry.data.get(CONF_USERNAME)
password = entry.data.get(CONF_PASSWORD)
Expand Down
24 changes: 0 additions & 24 deletions custom_components/veolia/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,10 @@

from homeassistant.components.sensor import DOMAIN as SENSOR

# Base component constants
NAME = "Veolia"
DOMAIN = "veolia"
DOMAIN_DATA = f"{DOMAIN}_data"
VERSION = "0.1.0"

ISSUE_URL = "https://github.com/tetienne/veolia-custom-component/issues"

# Platforms
PLATFORMS = [SENSOR]


# Configuration and options
CONF_USERNAME = "username"
CONF_PASSWORD = "password"

# Defaults
DEFAULT_NAME = DOMAIN
API = "api"
COORDINATOR = "coordinator"


STARTUP_MESSAGE = f"""
-------------------------------------------------------------------
{NAME}
Version: {VERSION}
This is a custom integration!
If you have any issues with this you need to open an issue here:
{ISSUE_URL}
-------------------------------------------------------------------
"""

0 comments on commit 51a60e7

Please sign in to comment.