fix: y and n are invalid selections in KlipperFlashOverviewMenu (#508)

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2024-09-01 18:31:15 +02:00
committed by GitHub
parent 0ee0fa3325
commit 9f50f6fdd7
5 changed files with 52 additions and 56 deletions

View File

@@ -22,7 +22,10 @@ class Option:
:param opt_data: Can be used to pass any additional data to the menu option
"""
method: Type[Callable] | None = None
def __repr__(self):
return f"Option(method={self.method.__name__}, opt_index={self.opt_index}, opt_data={self.opt_data})"
method: Type[Callable]
opt_index: str = ""
opt_data: Any = None