Fix ELKM1 entity service schema (#50020)
This commit is contained in:
parent
2ed386f9e6
commit
a2d12f9a51
1 changed files with 9 additions and 13 deletions
|
@ -14,7 +14,6 @@ from homeassistant.components.alarm_control_panel.const import (
|
|||
SUPPORT_ALARM_ARM_NIGHT,
|
||||
)
|
||||
from homeassistant.const import (
|
||||
ATTR_ENTITY_ID,
|
||||
STATE_ALARM_ARMED_AWAY,
|
||||
STATE_ALARM_ARMED_HOME,
|
||||
STATE_ALARM_ARMED_NIGHT,
|
||||
|
@ -36,18 +35,15 @@ from .const import (
|
|||
ELK_USER_CODE_SERVICE_SCHEMA,
|
||||
)
|
||||
|
||||
DISPLAY_MESSAGE_SERVICE_SCHEMA = vol.Schema(
|
||||
{
|
||||
vol.Optional(ATTR_ENTITY_ID, default=[]): cv.entity_ids,
|
||||
vol.Optional("clear", default=2): vol.All(vol.Coerce(int), vol.In([0, 1, 2])),
|
||||
vol.Optional("beep", default=False): cv.boolean,
|
||||
vol.Optional("timeout", default=0): vol.All(
|
||||
vol.Coerce(int), vol.Range(min=0, max=65535)
|
||||
),
|
||||
vol.Optional("line1", default=""): cv.string,
|
||||
vol.Optional("line2", default=""): cv.string,
|
||||
}
|
||||
)
|
||||
DISPLAY_MESSAGE_SERVICE_SCHEMA = {
|
||||
vol.Optional("clear", default=2): vol.All(vol.Coerce(int), vol.In([0, 1, 2])),
|
||||
vol.Optional("beep", default=False): cv.boolean,
|
||||
vol.Optional("timeout", default=0): vol.All(
|
||||
vol.Coerce(int), vol.Range(min=0, max=65535)
|
||||
),
|
||||
vol.Optional("line1", default=""): cv.string,
|
||||
vol.Optional("line2", default=""): cv.string,
|
||||
}
|
||||
|
||||
SERVICE_ALARM_DISPLAY_MESSAGE = "alarm_display_message"
|
||||
SERVICE_ALARM_ARM_VACATION = "alarm_arm_vacation"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue