[thci] fix issue with not initialized isPowerDown flag (#7196)

When the GRL starts, it calls initialize() reset() method on each
device. Reset method call fails due to missing (uninitialized)
attribute `isPowerDown`.
This commit is contained in:
tomaszkob89
2021-11-23 10:03:10 -08:00
committed by GitHub
parent 3dd184a0bc
commit cf4b71d8b9
+1
View File
@@ -402,6 +402,7 @@ class OpenThreadTHCI(object):
self.UIStatusMsg = ''
self.AutoDUTEnable = False
self.isPowerDown = False
self._is_net = False # whether device is through ser2net
self.logStatus = {
'stop': 'stop',