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);
|
const keys = Object.keys(Consts.BLECharacteristic);
|
||||||
for (let i = 0; i < keys.length; i++) {
|
for (let i = 0; i < keys.length; i++) {
|
||||||
const key = keys[i];
|
const key = keys[i];
|
||||||
if (Consts.BLECharacteristic[key as any] === uuid) {
|
if (Consts.BLECharacteristic[key as keyof typeof Consts.BLECharacteristic] === uuid) {
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user