Centralize all usages of host
as a configuration param to the constant CONF_HOST (#22458)
* Centralize all usages of as a configuration param to the constant CONF_HOST * Clean up test
This commit is contained in:
parent
9176e13a97
commit
78e162c1d3
16 changed files with 61 additions and 66 deletions
|
@ -14,7 +14,7 @@ from homeassistant.components.media_player import (
|
|||
from homeassistant.components.media_player.const import (
|
||||
SUPPORT_SELECT_SOURCE, SUPPORT_TURN_OFF, SUPPORT_TURN_ON,
|
||||
SUPPORT_VOLUME_MUTE, SUPPORT_VOLUME_SET, SUPPORT_VOLUME_STEP)
|
||||
from homeassistant.const import CONF_NAME, STATE_OFF, STATE_ON
|
||||
from homeassistant.const import CONF_NAME, STATE_OFF, STATE_ON, CONF_HOST
|
||||
|
||||
REQUIREMENTS = ['nad_receiver==0.0.11']
|
||||
|
||||
|
@ -34,7 +34,6 @@ SUPPORT_NAD = SUPPORT_VOLUME_SET | SUPPORT_VOLUME_MUTE | \
|
|||
|
||||
CONF_TYPE = 'type'
|
||||
CONF_SERIAL_PORT = 'serial_port' # for NADReceiver
|
||||
CONF_HOST = 'host' # for NADReceiverTelnet
|
||||
CONF_PORT = 'port' # for NADReceiverTelnet
|
||||
CONF_MIN_VOLUME = 'min_volume'
|
||||
CONF_MAX_VOLUME = 'max_volume'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue