Move constant to 'const.py' and use already defined ones (#10211)
This commit is contained in:
parent
6a9968ccb9
commit
690760404b
15 changed files with 113 additions and 120 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue