Update alexa camera stream basic auth parameters (#1544)

Signed-off-by: jsetton <jeremy.setton@gmail.com>
pull/1547/head
Jeremy 2022-11-16 17:02:02 -05:00 committed by GitHub
parent 587994b7ff
commit 26c3e35356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -16,7 +16,7 @@ export default {
// Camera Attributes
CameraStream: {
itemTypes: ['String'],
parameters: () => [p.proxyBaseUrl(), p.resolution(), p.basicAuth('username'), p.basicAuth('password')]
parameters: () => [p.proxyBaseUrl(), p.resolution(), p.basicAuthUsername(), p.basicAuthPassword()]
},
// Cover Attributes

View File

@ -29,9 +29,15 @@ export default {
advanced: !!defaultValue,
visible: (_, config) => !config.nonControllable
}),
basicAuth: (setting) => ({
name: setting,
label: `Basic Authentication ${titleCase(setting)}`,
basicAuthPassword: () => ({
name: 'password',
label: 'Basic Authentication Password',
type: 'TEXT',
context: 'password'
}),
basicAuthUsername: () => ({
name: 'username',
label: 'Basic Authentication Username',
type: 'TEXT'
}),
capabilityNames: (defaultValue, placeholder) => ({