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:
jjlawren 2019-09-05 15:20:58 -05:00 committed by Martin Hjelmare
parent 2cd845fb25
commit 23fdc04554
3 changed files with 20 additions and 3 deletions

View file

@ -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__)