move songpal service to songpal domain (#29143)

This commit is contained in:
Raman Gupta 2019-11-27 05:19:01 -05:00 committed by Pascal Vizeli
parent 0ff0ec7d3e
commit c72e230432
5 changed files with 19 additions and 18 deletions

View File

@ -637,7 +637,7 @@ omit =
homeassistant/components/somfy/*
homeassistant/components/somfy_mylink/*
homeassistant/components/sonarr/sensor.py
homeassistant/components/songpal/media_player.py
homeassistant/components/songpal/*
homeassistant/components/sonos/*
homeassistant/components/sony_projector/switch.py
homeassistant/components/spc/*

View File

@ -243,17 +243,3 @@ yamaha_enable_output:
enabled:
description: Boolean indicating if port should be enabled or not.
example: true
songpal_set_sound_setting:
description: Change sound setting.
fields:
entity_id:
description: Target device.
example: 'media_player.my_soundbar'
name:
description: Name of the setting.
example: 'nightMode'
value:
description: Value to set.
example: 'on'

View File

@ -0,0 +1,3 @@
"""Constants for the Songpal component."""
DOMAIN = "songpal"
SET_SOUND_SETTING = "set_sound_setting"

View File

@ -15,7 +15,6 @@ from songpal import (
from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
from homeassistant.components.media_player.const import (
DOMAIN,
SUPPORT_SELECT_SOURCE,
SUPPORT_TURN_OFF,
SUPPORT_TURN_ON,
@ -33,6 +32,8 @@ from homeassistant.const import (
from homeassistant.exceptions import PlatformNotReady
import homeassistant.helpers.config_validation as cv
from .const import DOMAIN, SET_SOUND_SETTING
_LOGGER = logging.getLogger(__name__)
CONF_ENDPOINT = "endpoint"
@ -42,8 +43,6 @@ PARAM_VALUE = "value"
PLATFORM = "songpal"
SET_SOUND_SETTING = "songpal_set_sound_setting"
SUPPORT_SONGPAL = (
SUPPORT_VOLUME_SET
| SUPPORT_VOLUME_STEP

View File

@ -0,0 +1,13 @@
set_sound_setting:
description: Change sound setting.
fields:
entity_id:
description: Target device.
example: 'media_player.my_soundbar'
name:
description: Name of the setting.
example: 'nightMode'
value:
description: Value to set.
example: 'on'