@switchbot/homebridge-switchbot 4.1.4-beta.1 → 4.1.4-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -273,7 +273,7 @@ export class RobotVacuumCleaner extends deviceBase {
273
273
  // Start to monitor advertisement packets
274
274
  (async () => {
275
275
  // Start to monitor advertisement packets
276
- const serviceData = await this.monitorAdvertisementPackets(switchBotBLE) as unknown as robotVacuumCleanerServiceData
276
+ const serviceData = await this.monitorAdvertisementPackets(switchBotBLE) as robotVacuumCleanerServiceData
277
277
  // Update HomeKit
278
278
  if (serviceData.model === SwitchBotBLEModel.Unknown && serviceData.modelName === SwitchBotBLEModelName.Unknown) {
279
279
  this.serviceData = serviceData
@@ -392,7 +392,7 @@ export class RobotVacuumCleaner extends deviceBase {
392
392
  switchBotBLE
393
393
  .discover({ model: this.device.bleModel, id: this.device.bleMac })
394
394
  .then(async (device_list: SwitchbotDevice[]) => {
395
- const deviceList = device_list as unknown as SwitchbotDevice[]
395
+ const deviceList = device_list as SwitchbotDevice[]
396
396
  this.infoLog(`On: ${this.LightBulb.On}`)
397
397
  return await this.retryBLE({
398
398
  max: this.maxRetryBLE(),