mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Use automation state for devices used by api
This commit is contained in:
parent
42b55889ae
commit
a62a6094e4
11 changed files with 45 additions and 10 deletions
|
@ -148,6 +148,7 @@ function addUserDevice(req, res) {
|
|||
.handler()
|
||||
|
||||
req.options.channelRouter.on(wireutil.global, messageListener)
|
||||
var usage = 'automation'
|
||||
|
||||
req.options.push.send([
|
||||
device.channel
|
||||
|
@ -165,6 +166,7 @@ function addUserDevice(req, res) {
|
|||
, match: 'exact'
|
||||
}
|
||||
})
|
||||
, usage
|
||||
)
|
||||
)
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue