Update alexa camera stream basic auth parameters (#1544)
Signed-off-by: jsetton <jeremy.setton@gmail.com>pull/1547/head
parent
587994b7ff
commit
26c3e35356
|
@ -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
|
||||
|
|
|
@ -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) => ({
|
||||
|
|
Loading…
Reference in New Issue