Update service domain for harmony from 'remote' to 'harmony' (#29146)

* move harmoney services to harmony domain

* update service names
This commit is contained in:
Raman Gupta 2019-11-27 12:14:46 -05:00 committed by Pascal Vizeli
parent d577868190
commit b274fcba05
5 changed files with 23 additions and 23 deletions

View file

@ -284,7 +284,7 @@ omit =
homeassistant/components/hangouts/hangouts_bot.py
homeassistant/components/hangouts/hangups_utils.py
homeassistant/components/harman_kardon_avr/media_player.py
homeassistant/components/harmony/remote.py
homeassistant/components/harmony/*
homeassistant/components/haveibeenpwned/sensor.py
homeassistant/components/hdmi_cec/*
homeassistant/components/heatmiser/climate.py

View file

@ -0,0 +1,4 @@
"""Constants for the Harmony component."""
DOMAIN = "harmony"
SERVICE_SYNC = "sync"
SERVICE_CHANGE_CHANNEL = "change_channel"

View file

@ -19,7 +19,6 @@ from homeassistant.components.remote import (
ATTR_HOLD_SECS,
ATTR_NUM_REPEATS,
DEFAULT_DELAY_SECS,
DOMAIN,
PLATFORM_SCHEMA,
)
from homeassistant.const import (
@ -33,6 +32,8 @@ from homeassistant.exceptions import PlatformNotReady
import homeassistant.helpers.config_validation as cv
from homeassistant.util import slugify
from .const import DOMAIN, SERVICE_CHANGE_CHANNEL, SERVICE_SYNC
_LOGGER = logging.getLogger(__name__)
ATTR_CHANNEL = "channel"
@ -42,9 +43,6 @@ DEFAULT_PORT = 8088
DEVICES = []
CONF_DEVICE_CACHE = "harmony_device_cache"
SERVICE_SYNC = "harmony_sync"
SERVICE_CHANGE_CHANNEL = "harmony_change_channel"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{
vol.Optional(ATTR_ACTIVITY): cv.string,

View file

@ -0,0 +1,16 @@
sync:
description: Syncs the remote's configuration.
fields:
entity_id:
description: Name(s) of entities to sync.
example: 'remote.family_room'
change_channel:
description: Sends change channel command to the Harmony HUB
fields:
entity_id:
description: Name(s) of Harmony remote entities to send change channel command to
example: 'remote.family_room'
channel:
description: Channel number to change to
example: '200'

View file

@ -65,24 +65,6 @@ learn_command:
description: Timeout, in seconds, for the command to be learned.
example: '30'
harmony_sync:
description: Syncs the remote's configuration.
fields:
entity_id:
description: Name(s) of entities to sync.
example: 'remote.family_room'
harmony_change_channel:
description: Sends change channel command to the Harmony HUB
fields:
entity_id:
description: Name(s) of Harmony remote entities to send change channel command to
example: 'remote.family_room'
channel:
description: Channel number to change to
example: '200'
xiaomi_miio_learn_command:
description: 'Learn an IR command, press "Call Service", point the remote at the IR device, and the learned command will be shown as a notification in Overview.'
fields: