move yamaha service to yamaha domain (#29142)
parent
ef21fd2536
commit
d577868190
|
@ -790,7 +790,6 @@ omit =
|
|||
homeassistant/components/xmpp/notify.py
|
||||
homeassistant/components/xs1/*
|
||||
homeassistant/components/yale_smart_alarm/alarm_control_panel.py
|
||||
homeassistant/components/yamaha/media_player.py
|
||||
homeassistant/components/yamaha_musiccast/media_player.py
|
||||
homeassistant/components/yandex_transport/*
|
||||
homeassistant/components/yeelight/*
|
||||
|
|
|
@ -156,53 +156,3 @@ shuffle_set:
|
|||
shuffle:
|
||||
description: True/false for enabling/disabling shuffle.
|
||||
example: true
|
||||
|
||||
soundtouch_play_everywhere:
|
||||
description: Play on all Bose Soundtouch devices.
|
||||
fields:
|
||||
master:
|
||||
description: Name of the master entity that will coordinate the grouping. Platform dependent. It is a shortcut for creating a multi-room zone with all devices
|
||||
example: 'media_player.soundtouch_home'
|
||||
|
||||
soundtouch_create_zone:
|
||||
description: Create a Sountouch multi-room zone.
|
||||
fields:
|
||||
master:
|
||||
description: Name of the master entity that will coordinate the multi-room zone. Platform dependent.
|
||||
example: 'media_player.soundtouch_home'
|
||||
slaves:
|
||||
description: Name of slaves entities to add to the new zone.
|
||||
example: 'media_player.soundtouch_bedroom'
|
||||
|
||||
soundtouch_add_zone_slave:
|
||||
description: Add a slave to a Sountouch multi-room zone.
|
||||
fields:
|
||||
master:
|
||||
description: Name of the master entity that is coordinating the multi-room zone. Platform dependent.
|
||||
example: 'media_player.soundtouch_home'
|
||||
slaves:
|
||||
description: Name of slaves entities to add to the existing zone.
|
||||
example: 'media_player.soundtouch_bedroom'
|
||||
|
||||
soundtouch_remove_zone_slave:
|
||||
description: Remove a slave from the Sounttouch multi-room zone.
|
||||
fields:
|
||||
master:
|
||||
description: Name of the master entity that is coordinating the multi-room zone. Platform dependent.
|
||||
example: 'media_player.soundtouch_home'
|
||||
slaves:
|
||||
description: Name of slaves entities to remove from the existing zone.
|
||||
example: 'media_player.soundtouch_bedroom'
|
||||
|
||||
yamaha_enable_output:
|
||||
description: Enable or disable an output port
|
||||
fields:
|
||||
entity_id:
|
||||
description: Name(s) of entites to enable/disable port on.
|
||||
example: 'media_player.yamaha'
|
||||
port:
|
||||
description: Name of port to enable/disable.
|
||||
example: 'hdmi1'
|
||||
enabled:
|
||||
description: Boolean indicating if port should be enabled or not.
|
||||
example: true
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
"""Constants for the Yamaha component."""
|
||||
DOMAIN = "yamaha"
|
||||
SERVICE_ENABLE_OUTPUT = "enable_output"
|
|
@ -7,7 +7,6 @@ import voluptuous as vol
|
|||
|
||||
from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
|
||||
from homeassistant.components.media_player.const import (
|
||||
DOMAIN,
|
||||
MEDIA_TYPE_MUSIC,
|
||||
SUPPORT_NEXT_TRACK,
|
||||
SUPPORT_PAUSE,
|
||||
|
@ -34,6 +33,8 @@ from homeassistant.const import (
|
|||
)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from .const import DOMAIN, SERVICE_ENABLE_OUTPUT
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
ATTR_ENABLED = "enabled"
|
||||
|
@ -53,8 +54,6 @@ ENABLE_OUTPUT_SCHEMA = MEDIA_PLAYER_SCHEMA.extend(
|
|||
{vol.Required(ATTR_ENABLED): cv.boolean, vol.Required(ATTR_PORT): cv.string}
|
||||
)
|
||||
|
||||
SERVICE_ENABLE_OUTPUT = "yamaha_enable_output"
|
||||
|
||||
SUPPORT_YAMAHA = (
|
||||
SUPPORT_VOLUME_SET
|
||||
| SUPPORT_VOLUME_MUTE
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
enable_output:
|
||||
description: Enable or disable an output port
|
||||
fields:
|
||||
entity_id:
|
||||
description: Name(s) of entites to enable/disable port on.
|
||||
example: 'media_player.yamaha'
|
||||
port:
|
||||
description: Name of port to enable/disable.
|
||||
example: 'hdmi1'
|
||||
enabled:
|
||||
description: Boolean indicating if port should be enabled or not.
|
||||
example: true
|
Loading…
Reference in New Issue