Move constant to 'const.py' and use already defined ones (#10211)

This commit is contained in:
Fabian Affolter 2017-10-29 17:28:07 +01:00 committed by GitHub
parent 6a9968ccb9
commit 690760404b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 113 additions and 120 deletions

View file

@ -10,7 +10,7 @@ import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME, CONF_API_KEY
from homeassistant.const import CONF_NAME, CONF_API_KEY, CONF_ROOM
from homeassistant.helpers.entity import Entity
REQUIREMENTS = ['gitterpy==0.1.6']
@ -21,8 +21,6 @@ ATTR_MENTION = 'mention'
ATTR_ROOM = 'room'
ATTR_USERNAME = 'username'
CONF_ROOM = 'room'
DEFAULT_NAME = 'Gitter messages'
DEFAULT_ROOM = 'home-assistant/home-assistant'