Skip to content

Commit

Permalink
Reuse core constant instead of defining again.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsayre committed Jan 21, 2019
1 parent 9a250fb commit c3926dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion homeassistant/components/smartthings/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
CONF_INSTALLED_APP_ID = 'installed_app_id'
CONF_INSTANCE_ID = 'instance_id'
CONF_LOCATION_ID = 'location_id'
CONF_WEBHOOK_ID = 'webhook_id'
DATA_MANAGER = 'manager'
DATA_BROKERS = 'brokers'
DOMAIN = 'smartthings'
Expand Down
3 changes: 2 additions & 1 deletion homeassistant/components/smartthings/smartapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from aiohttp import web

from homeassistant.components import webhook
from homeassistant.const import CONF_WEBHOOK_ID
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.helpers.dispatcher import (
async_dispatcher_connect, async_dispatcher_send)
Expand All @@ -24,7 +25,7 @@
APP_NAME_PREFIX, APP_OAUTH_SCOPES, CONF_APP_ID, CONF_INSTALLED_APP_ID,
CONF_INSTANCE_ID, CONF_LOCATION_ID, DATA_BROKERS, DATA_MANAGER, DOMAIN,
SETTINGS_INSTANCE_ID, SIGNAL_SMARTAPP_PREFIX, SMARTTHINGS_CONFIG_FILE,
SUPPORTED_CAPABILITIES, CONF_WEBHOOK_ID)
SUPPORTED_CAPABILITIES)

_LOGGER = logging.getLogger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions tests/components/smartthings/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
from homeassistant.components import webhook
from homeassistant.components.smartthings.const import (
APP_NAME_PREFIX, CONF_APP_ID, CONF_INSTALLED_APP_ID, CONF_INSTANCE_ID,
CONF_LOCATION_ID, CONF_WEBHOOK_ID, DOMAIN, SETTINGS_INSTANCE_ID)
CONF_LOCATION_ID, DOMAIN, SETTINGS_INSTANCE_ID)
from homeassistant.config_entries import (
CONN_CLASS_CLOUD_PUSH, SOURCE_USER, ConfigEntry)
from homeassistant.const import CONF_ACCESS_TOKEN
from homeassistant.const import CONF_ACCESS_TOKEN, CONF_WEBHOOK_ID
from homeassistant.setup import async_setup_component

from tests.common import mock_coro
Expand Down

0 comments on commit c3926dc

Please sign in to comment.