Skip to content

Commit

Permalink
[AutoOnboarding] OnFabricRemoved event is not handled
Browse files Browse the repository at this point in the history
[Problem]
OnFabricRemoved event is not handled on AutoOnboarding scenario.
The event occurs when any device is removed from SmartThings.

[Cause]
exitMsgBox_enable variable that the boolean value is used when ioter blocks the process removing device itself during repeat-onboarding test

[Measure]
Remove a code setting the variable as True to show up the exit dialog
  • Loading branch information
spdkimo committed Jun 30, 2023
1 parent 5c6b667 commit 7ce3d4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/common/common_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,11 @@ def auto_remove(self):

## Verify auto onboarding request ##
def auto_go(self):
self.exitMsgBox_enable = False
if not self.auto.request_onboarding(self.device_info.com_port, self.device_info.device_num, self.plainTextEditPairingCode.toPlainText(), self.device_info.device_id):
if not self.auto.request_onboarding(self.device_info.com_port, self.device_info.device_num,
self.plainTextEditPairingCode.toPlainText(), self.device_info.device_id):
self.appendTextBrowserLog("Can't work auto-onboarding")
self.chkbox_auto.toggle()
self.pushButtonDevicePower.toggle()
self.exitMsgBox_enable = True

## Check if device is used in Automation ##
def autotest_used(self, use):
Expand Down

0 comments on commit 7ce3d4f

Please sign in to comment.