Skip to content

Commit

Permalink
Remove poll configuration variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Dec 9, 2018
1 parent 55c7c46 commit 086ff9c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions homeassistant/components/media_player/songpal.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
_LOGGER = logging.getLogger(__name__)

CONF_ENDPOINT = 'endpoint'
CONF_POLL = 'poll'

PARAM_NAME = 'name'
PARAM_VALUE = 'value'
Expand All @@ -40,7 +39,6 @@
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Optional(CONF_NAME): cv.string,
vol.Required(CONF_ENDPOINT): cv.string,
vol.Optional(CONF_POLL, default=False): cv.boolean,
})

SET_SOUND_SCHEMA = vol.Schema({
Expand All @@ -67,8 +65,7 @@ async def async_setup_platform(
else:
name = config.get(CONF_NAME)
endpoint = config.get(CONF_ENDPOINT)
poll = config.get(CONF_POLL)
device = SongpalDevice(name, endpoint, poll)
device = SongpalDevice(name, endpoint, poll=False)

if endpoint in hass.data[PLATFORM]:
_LOGGER.debug("The endpoint exists already, skipping setup.")
Expand Down

0 comments on commit 086ff9c

Please sign in to comment.