1
0

wizard: improve hww uninitialized default msg. attempt fix flake issue w.r.t ABC

This commit is contained in:
Sander van Grieken
2023-09-11 10:10:29 +02:00
parent b7612605c5
commit 50d2cdb1b5
2 changed files with 5 additions and 3 deletions

View File

@@ -1336,4 +1336,6 @@ class WCHWUninitialized(WizardComponent):
def on_ready(self): def on_ready(self):
_name, _info = self.wizard_data['hardware_device'] _name, _info = self.wizard_data['hardware_device']
self.layout().addWidget(WWLabel(_('This {} is not initialized. Cannot continue').format(_info.model_name))) label = WWLabel(_('This {} is not initialized. Use manufacturer tooling to initialize the device.').format(_info.model_name))
label.setAlignment(Qt.AlignCenter)
self.layout().addWidget(label)

View File

@@ -201,7 +201,7 @@ class HardwareClientBase(ABC):
def close(self): def close(self):
pass pass
def timeout(self, cutoff) -> None: def timeout(self, cutoff) -> None: # noqa: B027
pass pass
@abstractmethod @abstractmethod
@@ -261,7 +261,7 @@ class HardwareClientBase(ABC):
""" """
return self.plugin.name return self.plugin.name
def manipulate_keystore_dict_during_wizard_setup(self, d: dict) -> None: def manipulate_keystore_dict_during_wizard_setup(self, d: dict) -> None: # noqa: B027
"""Called during wallet creation in the wizard, before the keystore """Called during wallet creation in the wizard, before the keystore
is constructed for the first time. 'd' is the dict that will be is constructed for the first time. 'd' is the dict that will be
passed to the keystore constructor. passed to the keystore constructor.