From 9ce00018be6b00682d40b6b29f3e78fab7181e62 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 3 May 2021 18:41:16 +0200 Subject: [PATCH] Fix Harmony entity service schema (#50025) --- homeassistant/components/harmony/remote.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/harmony/remote.py b/homeassistant/components/harmony/remote.py index f98f5bb33e7..593fbf3cb22 100644 --- a/homeassistant/components/harmony/remote.py +++ b/homeassistant/components/harmony/remote.py @@ -15,7 +15,6 @@ from homeassistant.components.remote import ( SUPPORT_ACTIVITY, ) from homeassistant.config_entries import ConfigEntry -from homeassistant.const import ATTR_ENTITY_ID from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import entity_platform import homeassistant.helpers.config_validation as cv @@ -44,14 +43,9 @@ PARALLEL_UPDATES = 0 ATTR_CHANNEL = "channel" -HARMONY_SYNC_SCHEMA = vol.Schema({vol.Optional(ATTR_ENTITY_ID): cv.entity_ids}) - -HARMONY_CHANGE_CHANNEL_SCHEMA = vol.Schema( - { - vol.Required(ATTR_ENTITY_ID): cv.entity_ids, - vol.Required(ATTR_CHANNEL): cv.positive_int, - } -) +HARMONY_CHANGE_CHANNEL_SCHEMA = { + vol.Required(ATTR_CHANNEL): cv.positive_int, +} async def async_setup_entry( @@ -74,7 +68,7 @@ async def async_setup_entry( platform.async_register_entity_service( SERVICE_SYNC, - HARMONY_SYNC_SCHEMA, + {}, "sync", ) platform.async_register_entity_service(