mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Remove configuration details
This commit is contained in:
parent
75f737144a
commit
44b08a06e7
@ -1,36 +1,10 @@
|
|||||||
"""
|
"""
|
||||||
homeassistant.components.media_player.itunes
|
homeassistant.components.media_player.itunes
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Provides an interface to iTunes-API (https://github.com/maddox/itunes-api)
|
Provides an interface to iTunes API.
|
||||||
|
|
||||||
The iTunes media player will allow you to control your iTunes instance. You
|
|
||||||
can play/pause/next/previous/mute, adjust volume, etc.
|
|
||||||
|
|
||||||
In addition to controlling iTunes, your available AirPlay endpoints will be
|
|
||||||
added as media players as well. You can then individually address them append
|
|
||||||
turn them on, turn them off, or adjust their volume.
|
|
||||||
|
|
||||||
Configuration:
|
|
||||||
|
|
||||||
To use iTunes you will need to add something like the following to
|
|
||||||
your configuration.yaml file.
|
|
||||||
|
|
||||||
media_player:
|
|
||||||
platform: itunes
|
|
||||||
name: iTunes
|
|
||||||
host: http://192.168.1.16
|
|
||||||
port: 8181
|
|
||||||
|
|
||||||
Variables:
|
|
||||||
|
|
||||||
name
|
|
||||||
*Optional
|
|
||||||
The name of the device.
|
|
||||||
|
|
||||||
url
|
|
||||||
*Required
|
|
||||||
URL of your running version of iTunes-API. Example: http://192.168.1.50:8181
|
|
||||||
|
|
||||||
|
For more details about this platform, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/media_player.itunes.html
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
@ -157,11 +131,9 @@ class Itunes(object):
|
|||||||
path = '/airplay_devices/' + device_id + '/volume'
|
path = '/airplay_devices/' + device_id + '/volume'
|
||||||
return self._request('PUT', path, {'level': level})
|
return self._request('PUT', path, {'level': level})
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
# pylint: disable=abstract-method
|
# pylint: disable=unused-argument, abstract-method
|
||||||
# pylint: disable=too-many-instance-attributes
|
# pylint: disable=too-many-instance-attributes
|
||||||
|
|
||||||
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
""" Sets up the itunes platform. """
|
""" Sets up the itunes platform. """
|
||||||
|
|
||||||
@ -179,7 +151,6 @@ class ItunesDevice(MediaPlayerDevice):
|
|||||||
""" Represents a iTunes-API instance. """
|
""" Represents a iTunes-API instance. """
|
||||||
|
|
||||||
# pylint: disable=too-many-public-methods
|
# pylint: disable=too-many-public-methods
|
||||||
|
|
||||||
def __init__(self, name, host, port, add_devices):
|
def __init__(self, name, host, port, add_devices):
|
||||||
self._name = name
|
self._name = name
|
||||||
self._host = host
|
self._host = host
|
||||||
|
Loading…
x
Reference in New Issue
Block a user