Add plex server config options to media_player platform (#26458)
* Add server config options to media_player platform * Unnecessary else * Default host * No need to try for default values * Use const
This commit is contained in:
parent
2cd845fb25
commit
23fdc04554
3 changed files with 20 additions and 3 deletions
|
@ -19,10 +19,9 @@ from homeassistant.helpers.entity import Entity
|
|||
from homeassistant.util import Throttle
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from .const import DEFAULT_PORT, DEFAULT_SSL, DEFAULT_VERIFY_SSL
|
||||
from .const import DEFAULT_HOST, DEFAULT_PORT, DEFAULT_SSL, DEFAULT_VERIFY_SSL
|
||||
from .server import PlexServer
|
||||
|
||||
DEFAULT_HOST = "localhost"
|
||||
DEFAULT_NAME = "Plex"
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue