Fix ts error
This commit is contained in:
parent
9a9d3ee4d5
commit
822d3da5d9
@ -315,7 +315,7 @@ export class WeDo2SmartHub extends Hub {
|
||||
const keys = Object.keys(Consts.BLECharacteristic);
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
const key = keys[i];
|
||||
if (Consts.BLECharacteristic[key as any] === uuid) {
|
||||
if (Consts.BLECharacteristic[key as keyof typeof Consts.BLECharacteristic] === uuid) {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user