Allow different types to match in pilight (#17922)
* Allow different types to match see discussion here: https://github.com/home-assistant/home-assistant/pull/17870 * lint spaces * line length < 79
This commit is contained in:
parent
ab8299b6cf
commit
e9f96bfd7f
1 changed files with 4 additions and 2 deletions
|
@ -37,8 +37,10 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||
vol.Required(CONF_VARIABLE): cv.string,
|
||||
vol.Required(CONF_PAYLOAD): vol.Schema(dict),
|
||||
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
|
||||
vol.Optional(CONF_PAYLOAD_ON, default='on'): cv.string,
|
||||
vol.Optional(CONF_PAYLOAD_OFF, default='off'): cv.string,
|
||||
vol.Optional(CONF_PAYLOAD_ON, default='on'): vol.Any(
|
||||
cv.positive_int, cv.small_float, cv.string),
|
||||
vol.Optional(CONF_PAYLOAD_OFF, default='off'): vol.Any(
|
||||
cv.positive_int, cv.small_float, cv.string),
|
||||
vol.Optional(CONF_DISARM_AFTER_TRIGGER, default=False): cv.boolean,
|
||||
vol.Optional(CONF_RESET_DELAY_SEC, default=30): cv.positive_int
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue