File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ import { SystemStateService } from './system-state.service';
320
320
}
321
321
` ,
322
322
] ,
323
- standalone : false
323
+ standalone : false ,
324
324
} )
325
325
export class SystemModulesComponent extends AsyncHandler {
326
326
/** Whether a device should be listened to */
@@ -443,7 +443,7 @@ export class SystemModulesComponent extends AsyncHandler {
443
443
public readonly addToSystem = ( d ) => this . _service . addModuleToSystem ( d ) ;
444
444
445
445
public driver_type ( role : PlaceDriverRole ) : string {
446
- if ( role == null ) return '' ;
446
+ if ( ! role && role != 0 ) return '' ;
447
447
switch ( role ) {
448
448
case PlaceDriverRole . Device :
449
449
return i18n ( 'DRIVERS.DEVICE' ) ;
@@ -453,8 +453,10 @@ export class SystemModulesComponent extends AsyncHandler {
453
453
return i18n ( 'DRIVERS.SERVICE' ) ;
454
454
case PlaceDriverRole . Websocket :
455
455
return i18n ( 'DRIVERS.WEBSOCKET' ) ;
456
+ case PlaceDriverRole . Logic :
457
+ return i18n ( 'DRIVERS.LOGIC' ) ;
456
458
}
457
- return i18n ( 'DRIVERS.LOGIC ' ) ;
459
+ return i18n ( 'DRIVERS.UNKNOWN ' ) ;
458
460
}
459
461
460
462
public get item ( ) : PlaceSystem {
Original file line number Diff line number Diff line change 391
391
"SERVICE" : " Service" ,
392
392
"WEBSOCKET" : " Websocket" ,
393
393
"LOGIC" : " Logic" ,
394
+ "UNKNOWN" : " Unknown" ,
394
395
"SEARCH" : " Search for drivers..." ,
395
396
"ADD" : " Add driver" ,
396
397
"EDIT" : " Edit driver" ,
You can’t perform that action at this time.
0 commit comments