Skip to content

Commit

Permalink
Update alexa camera stream basic auth parameters (#1544)
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <jeremy.setton@gmail.com>
  • Loading branch information
jsetton authored Nov 16, 2022
1 parent 587994b commit 26c3e35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) => ({
Expand Down

0 comments on commit 26c3e35

Please sign in to comment.