From 94b47d8bc361ce1485443b2d42bacc85e13cd876 Mon Sep 17 00:00:00 2001 From: happyleaves Date: Wed, 22 Jun 2016 17:07:46 -0400 Subject: [PATCH] addressed review --- homeassistant/components/{cec.py => hdmi_cec.py} | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) rename homeassistant/components/{cec.py => hdmi_cec.py} (95%) diff --git a/homeassistant/components/cec.py b/homeassistant/components/hdmi_cec.py similarity index 95% rename from homeassistant/components/cec.py rename to homeassistant/components/hdmi_cec.py index 0c7c40c1214..f5a64b909af 100644 --- a/homeassistant/components/cec.py +++ b/homeassistant/components/hdmi_cec.py @@ -1,5 +1,5 @@ """ -CEC platform. +CEC component. Requires libcec + Python bindings. """ @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) _CEC = None -DOMAIN = 'cec' +DOMAIN = 'hdmi_cec' SERVICE_SELECT_DEVICE = 'select_device' SERVICE_POWER_ON = 'power_on' SERVICE_STANDBY = 'standby' @@ -28,8 +28,10 @@ DEVICE_SCHEMA = vol.Schema({ }) -PLATFORM_SCHEMA = vol.Schema({ - vol.Required(CONF_DEVICES): DEVICE_SCHEMA +CONFIG_SCHEMA = vol.Schema({ + DOMAIN: vol.Schema({ + vol.Required(CONF_DEVICES): DEVICE_SCHEMA + }) })