move squeezebox service to squeezebox domain (#29141)

This commit is contained in:
Raman Gupta 2019-11-27 07:54:00 -05:00 committed by Pascal Vizeli
parent 59939004bf
commit 12ae8b025f
5 changed files with 7 additions and 19 deletions

View File

@ -646,7 +646,7 @@ omit =
homeassistant/components/spider/*
homeassistant/components/spotcrime/sensor.py
homeassistant/components/spotify/media_player.py
homeassistant/components/squeezebox/media_player.py
homeassistant/components/squeezebox/*
homeassistant/components/starline/*
homeassistant/components/starlingbank/sensor.py
homeassistant/components/steam_online/sensor.py

View File

@ -194,19 +194,6 @@ soundtouch_remove_zone_slave:
description: Name of slaves entities to remove from the existing zone.
example: 'media_player.soundtouch_bedroom'
squeezebox_call_method:
description: 'Call a Squeezebox JSON/RPC API method.'
fields:
entity_id:
description: Name(s) of the Squeexebox entities where to run the API method.
example: 'media_player.squeezebox_radio'
command:
description: Name of the Squeezebox command.
example: 'playlist'
parameters:
description: Optional array of parameters to be appended to the command. See 'Command Line Interface' official help page from Logitech for details.
example: '["loadtracks", "track.titlesearch=highway to hell"]'
yamaha_enable_output:
description: Enable or disable an output port
fields:

View File

@ -0,0 +1,3 @@
"""Constants for the Squeezebox component."""
DOMAIN = "squeezebox"
SERVICE_CALL_METHOD = "call_method"

View File

@ -12,7 +12,6 @@ import voluptuous as vol
from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerDevice
from homeassistant.components.media_player.const import (
ATTR_MEDIA_ENQUEUE,
DOMAIN,
MEDIA_TYPE_MUSIC,
SUPPORT_CLEAR_PLAYLIST,
SUPPORT_NEXT_TRACK,
@ -44,6 +43,8 @@ import homeassistant.helpers.config_validation as cv
from homeassistant.exceptions import PlatformNotReady
from homeassistant.util.dt import utcnow
from .const import DOMAIN, SERVICE_CALL_METHOD
_LOGGER = logging.getLogger(__name__)
DEFAULT_PORT = 9000
@ -75,8 +76,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
}
)
SERVICE_CALL_METHOD = "squeezebox_call_method"
DATA_SQUEEZEBOX = "squeezebox"
KNOWN_SERVERS = "squeezebox_known_servers"

View File

@ -1,4 +1,4 @@
squeezebox_call_method:
call_method:
description: Call a custom Squeezebox JSONRPC API.
fields:
entity_id:
@ -10,4 +10,3 @@ squeezebox_call_method:
parameters:
description: Array of additional parameters to pass to Logitech Media Server (p1, ..., pN in the CLI documentation).
example: ["loadtracks", "album.titlesearch="]