mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
addressed review
This commit is contained in:
parent
7fc9fa4b0c
commit
94b47d8bc3
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
CEC platform.
|
CEC component.
|
||||||
|
|
||||||
Requires libcec + Python bindings.
|
Requires libcec + Python bindings.
|
||||||
"""
|
"""
|
||||||
@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
_CEC = None
|
_CEC = None
|
||||||
DOMAIN = 'cec'
|
DOMAIN = 'hdmi_cec'
|
||||||
SERVICE_SELECT_DEVICE = 'select_device'
|
SERVICE_SELECT_DEVICE = 'select_device'
|
||||||
SERVICE_POWER_ON = 'power_on'
|
SERVICE_POWER_ON = 'power_on'
|
||||||
SERVICE_STANDBY = 'standby'
|
SERVICE_STANDBY = 'standby'
|
||||||
@ -28,9 +28,11 @@ DEVICE_SCHEMA = vol.Schema({
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
PLATFORM_SCHEMA = vol.Schema({
|
CONFIG_SCHEMA = vol.Schema({
|
||||||
|
DOMAIN: vol.Schema({
|
||||||
vol.Required(CONF_DEVICES): DEVICE_SCHEMA
|
vol.Required(CONF_DEVICES): DEVICE_SCHEMA
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
def parse_mapping(mapping, parents=None):
|
def parse_mapping(mapping, parents=None):
|
Loading…
x
Reference in New Issue
Block a user