(d: f.Device, markTypeAsValid: boolean)
| 368 | } |
| 369 | |
| 370 | public async connect(d: f.Device, markTypeAsValid: boolean): Promise<void> { |
| 371 | if (markTypeAsValid && d.platformType) |
| 372 | await this.enablePlatform(d.platformType); |
| 373 | |
| 374 | await this.notify(this.deviceAddedSubscriptions, d); |
| 375 | } |
| 376 | |
| 377 | public async disconnect(d: f.Device): Promise<void> { |
| 378 | await this.notify(this.deviceRemovedSubscriptions, d); |
no test coverage detected