@@ -141,7 +141,7 @@ export default class Bridge extends Extension {
141
141
142
142
// Zigbee events
143
143
const publishEvent = async ( type : string , data : KeyValue ) : Promise < void > =>
144
- this . mqtt . publish ( 'bridge/event' , stringify ( { type, data} ) , { retain : false , qos : 0 } ) ;
144
+ await this . mqtt . publish ( 'bridge/event' , stringify ( { type, data} ) , { retain : false , qos : 0 } ) ;
145
145
this . eventBus . onDeviceJoined ( this , async ( data ) => {
146
146
this . lastJoinedDeviceIeeeAddr = data . device . ieeeAddr ;
147
147
await this . publishDevices ( ) ;
@@ -213,11 +213,11 @@ export default class Bridge extends Extension {
213
213
*/
214
214
215
215
@bind async deviceOptions ( message : KeyValue | string ) : Promise < MQTTResponse > {
216
- return this . changeEntityOptions ( 'device' , message ) ;
216
+ return await this . changeEntityOptions ( 'device' , message ) ;
217
217
}
218
218
219
219
@bind async groupOptions ( message : KeyValue | string ) : Promise < MQTTResponse > {
220
- return this . changeEntityOptions ( 'group' , message ) ;
220
+ return await this . changeEntityOptions ( 'group' , message ) ;
221
221
}
222
222
223
223
@bind async bridgeOptions ( message : KeyValue | string ) : Promise < MQTTResponse > {
@@ -256,11 +256,11 @@ export default class Bridge extends Extension {
256
256
}
257
257
258
258
@bind async deviceRemove ( message : string | KeyValue ) : Promise < MQTTResponse > {
259
- return this . removeEntity ( 'device' , message ) ;
259
+ return await this . removeEntity ( 'device' , message ) ;
260
260
}
261
261
262
262
@bind async groupRemove ( message : string | KeyValue ) : Promise < MQTTResponse > {
263
- return this . removeEntity ( 'group' , message ) ;
263
+ return await this . removeEntity ( 'group' , message ) ;
264
264
}
265
265
266
266
@bind async healthCheck ( message : string | KeyValue ) : Promise < MQTTResponse > {
@@ -289,11 +289,11 @@ export default class Bridge extends Extension {
289
289
}
290
290
291
291
@bind async deviceRename ( message : string | KeyValue ) : Promise < MQTTResponse > {
292
- return this . renameEntity ( 'device' , message ) ;
292
+ return await this . renameEntity ( 'device' , message ) ;
293
293
}
294
294
295
295
@bind async groupRename ( message : string | KeyValue ) : Promise < MQTTResponse > {
296
- return this . renameEntity ( 'group' , message ) ;
296
+ return await this . renameEntity ( 'group' , message ) ;
297
297
}
298
298
299
299
@bind async restart ( message : string | KeyValue ) : Promise < MQTTResponse > {
0 commit comments