Add alexa semantic mappings parameters visible condition (#1258)

Signed-off-by: jsetton <jeremy.setton@gmail.com>
pull/1260/head
Jeremy 2022-01-03 11:14:46 -05:00 committed by GitHub
parent c96d5c1bee
commit 18d7283448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -26,7 +26,8 @@ export default {
default: defaultValue,
placeholder: placeholder.replace(/,/g, '\n'),
multiple: true,
advanced: !!defaultValue
advanced: !!defaultValue,
visible: (_, config) => !config.nonControllable
}),
capabilityNames: (defaultValue, placeholder) => ({
name: 'capabilityNames',
@ -301,7 +302,8 @@ export default {
description: `Each mapping formatted as ${getSemanticFormat('state', format)} (${docLink('Semantic Extensions')})`,
type: 'TEXT',
placeholder: placeholder.replace(/,/g, '\n'),
multiple: true
multiple: true,
visible: (_, config) => !!config.retrievable
}),
stepSpeaker: () => ({
name: 'stepSpeaker',