99 * file, You can obtain one at http://mozilla.org/MPL/2.0/.*
1010 */
1111
12- import { Action } from './action' ;
13- import { AddonManagerProxy } from './addon-manager-proxy' ;
14- import { Device } from './device' ;
15- import { DeviceWithoutId as DeviceWithoutIdSchema ,
16- Preferences ,
17- UserProfile } from './schema' ;
18-
12+ import { Action } from './action' ;
13+ import { AddonManagerProxy } from './addon-manager-proxy' ;
14+ import { Device } from './device' ;
15+ import { DeviceWithoutId as DeviceWithoutIdSchema , Preferences , UserProfile } from './schema' ;
1916
2017export interface AdapterDescription {
2118 id : string ;
@@ -51,8 +48,12 @@ export class Adapter {
5148
5249 private preferences ?: Preferences ;
5350
54- constructor ( manager : AddonManagerProxy , id : string , packageName : string ,
55- { verbose} : Record < string , unknown > = { } ) {
51+ constructor (
52+ manager : AddonManagerProxy ,
53+ id : string ,
54+ packageName : string ,
55+ { verbose } : Record < string , unknown > = { }
56+ ) {
5657 this . manager = manager ;
5758 this . id = id ;
5859 this . packageName = packageName ;
@@ -176,12 +177,10 @@ export class Adapter {
176177 * @param {string } deviceId - ID of the device
177178 * @param {object } device - the saved device description
178179 */
179- // eslint-disable-next-line @typescript-eslint/no-unused-vars
180180 handleDeviceSaved ( _deviceId : string , _device : DeviceWithoutIdSchema ) : void {
181- // eslint-disable-next-line @typescript-eslint/no-empty-function
181+ // pass
182182 }
183183
184- // eslint-disable-next-line @typescript-eslint/no-unused-vars
185184 startPairing ( _timeoutSeconds : number ) : void {
186185 if ( this . verbose ) {
187186 console . log ( 'Adapter:' , this . name , 'id' , this . id , 'pairing started' ) ;
@@ -220,17 +219,23 @@ export class Adapter {
220219
221220 removeThing ( device : Device ) : void {
222221 if ( this . verbose ) {
223- console . log ( 'Adapter:' , this . name , 'id' , this . id ,
224- 'removeThing(' , device . getId ( ) , ') started' ) ;
222+ console . log (
223+ 'Adapter:' ,
224+ this . name ,
225+ 'id' ,
226+ this . id ,
227+ 'removeThing(' ,
228+ device . getId ( ) ,
229+ ') started'
230+ ) ;
225231 }
226232
227233 this . handleDeviceRemoved ( device ) ;
228234 }
229235
230236 cancelRemoveThing ( device : Device ) : void {
231237 if ( this . verbose ) {
232- console . log ( 'Adapter:' , this . name , 'id' , this . id ,
233- 'cancelRemoveThing(' , device . getId ( ) , ')' ) ;
238+ console . log ( 'Adapter:' , this . name , 'id' , this . id , 'cancelRemoveThing(' , device . getId ( ) , ')' ) ;
234239 }
235240 }
236241
@@ -259,8 +264,7 @@ export class Adapter {
259264 const device = this . getDevice ( deviceId ) ;
260265 if ( device ) {
261266 if ( this . verbose ) {
262- console . log ( 'Adapter:' , this . name , 'id' , this . id ,
263- 'setPin(' , deviceId , ',' , pin , ')' ) ;
267+ console . log ( 'Adapter:' , this . name , 'id' , this . id , 'setPin(' , deviceId , ',' , pin , ')' ) ;
264268 }
265269
266270 return Promise . resolve ( ) ;
@@ -282,9 +286,19 @@ export class Adapter {
282286 const device = this . getDevice ( deviceId ) ;
283287 if ( device ) {
284288 if ( this . verbose ) {
285- console . log ( 'Adapter:' , this . name , 'id' , this . id ,
286- 'setCredentials(' , deviceId , ',' , username , ',' , password ,
287- ')' ) ;
289+ console . log (
290+ 'Adapter:' ,
291+ this . name ,
292+ 'id' ,
293+ this . id ,
294+ 'setCredentials(' ,
295+ deviceId ,
296+ ',' ,
297+ username ,
298+ ',' ,
299+ password ,
300+ ')'
301+ ) ;
288302 }
289303
290304 return Promise . resolve ( ) ;
0 commit comments