mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
move squeezebox service to squeezebox domain (#29141)
This commit is contained in:
parent
59939004bf
commit
12ae8b025f
@ -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
|
||||
|
@ -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:
|
||||
|
3
homeassistant/components/squeezebox/const.py
Normal file
3
homeassistant/components/squeezebox/const.py
Normal file
@ -0,0 +1,3 @@
|
||||
"""Constants for the Squeezebox component."""
|
||||
DOMAIN = "squeezebox"
|
||||
SERVICE_CALL_METHOD = "call_method"
|
@ -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"
|
||||
|
@ -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="]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user