mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
move songpal service to songpal domain (#29143)
This commit is contained in:
parent
0ff0ec7d3e
commit
c72e230432
@ -637,7 +637,7 @@ omit =
|
|||||||
homeassistant/components/somfy/*
|
homeassistant/components/somfy/*
|
||||||
homeassistant/components/somfy_mylink/*
|
homeassistant/components/somfy_mylink/*
|
||||||
homeassistant/components/sonarr/sensor.py
|
homeassistant/components/sonarr/sensor.py
|
||||||
homeassistant/components/songpal/media_player.py
|
homeassistant/components/songpal/*
|
||||||
homeassistant/components/sonos/*
|
homeassistant/components/sonos/*
|
||||||
homeassistant/components/sony_projector/switch.py
|
homeassistant/components/sony_projector/switch.py
|
||||||
homeassistant/components/spc/*
|
homeassistant/components/spc/*
|
||||||
|
@ -243,17 +243,3 @@ yamaha_enable_output:
|
|||||||
enabled:
|
enabled:
|
||||||
description: Boolean indicating if port should be enabled or not.
|
description: Boolean indicating if port should be enabled or not.
|
||||||
example: true
|
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'
|
|
||||||
|
3
homeassistant/components/songpal/const.py
Normal file
3
homeassistant/components/songpal/const.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"""Constants for the Songpal component."""
|
||||||
|
DOMAIN = "songpal"
|
||||||
|
SET_SOUND_SETTING = "set_sound_setting"
|
@ -15,7 +15,6 @@ from songpal import (
|
|||||||
|
|
||||||
from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
|
from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
|
||||||
from homeassistant.components.media_player.const import (
|
from homeassistant.components.media_player.const import (
|
||||||
DOMAIN,
|
|
||||||
SUPPORT_SELECT_SOURCE,
|
SUPPORT_SELECT_SOURCE,
|
||||||
SUPPORT_TURN_OFF,
|
SUPPORT_TURN_OFF,
|
||||||
SUPPORT_TURN_ON,
|
SUPPORT_TURN_ON,
|
||||||
@ -33,6 +32,8 @@ from homeassistant.const import (
|
|||||||
from homeassistant.exceptions import PlatformNotReady
|
from homeassistant.exceptions import PlatformNotReady
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
|
from .const import DOMAIN, SET_SOUND_SETTING
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
CONF_ENDPOINT = "endpoint"
|
CONF_ENDPOINT = "endpoint"
|
||||||
@ -42,8 +43,6 @@ PARAM_VALUE = "value"
|
|||||||
|
|
||||||
PLATFORM = "songpal"
|
PLATFORM = "songpal"
|
||||||
|
|
||||||
SET_SOUND_SETTING = "songpal_set_sound_setting"
|
|
||||||
|
|
||||||
SUPPORT_SONGPAL = (
|
SUPPORT_SONGPAL = (
|
||||||
SUPPORT_VOLUME_SET
|
SUPPORT_VOLUME_SET
|
||||||
| SUPPORT_VOLUME_STEP
|
| SUPPORT_VOLUME_STEP
|
||||||
|
@ -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'
|
Loading…
x
Reference in New Issue
Block a user