Use core constants for nad (#49709)
This commit is contained in:
parent
cd7d3ed12a
commit
d9714e6b79
1 changed files with 8 additions and 3 deletions
|
@ -11,7 +11,14 @@ from homeassistant.components.media_player.const import (
|
|||
SUPPORT_VOLUME_SET,
|
||||
SUPPORT_VOLUME_STEP,
|
||||
)
|
||||
from homeassistant.const import CONF_HOST, CONF_NAME, STATE_OFF, STATE_ON
|
||||
from homeassistant.const import (
|
||||
CONF_HOST,
|
||||
CONF_NAME,
|
||||
CONF_PORT,
|
||||
CONF_TYPE,
|
||||
STATE_OFF,
|
||||
STATE_ON,
|
||||
)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
DEFAULT_TYPE = "RS232"
|
||||
|
@ -31,9 +38,7 @@ SUPPORT_NAD = (
|
|||
| SUPPORT_SELECT_SOURCE
|
||||
)
|
||||
|
||||
CONF_TYPE = "type"
|
||||
CONF_SERIAL_PORT = "serial_port" # for NADReceiver
|
||||
CONF_PORT = "port" # for NADReceiverTelnet
|
||||
CONF_MIN_VOLUME = "min_volume"
|
||||
CONF_MAX_VOLUME = "max_volume"
|
||||
CONF_VOLUME_STEP = "volume_step" # for NADReceiverTCP
|
||||
|
|
Loading…
Add table
Reference in a new issue