We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75859f5 commit 30fa2a7Copy full SHA for 30fa2a7
src/main.py
@@ -78,6 +78,12 @@ def __display_current_device(self) -> None:
78
self.__change_device(current_device_data)
79
80
def __change_device(self, device_data: dict) -> None:
81
+ if device_data == {}:
82
+ self.__display.print("No devices", line=2)
83
+ return
84
+
85
+ print(device_data)
86
87
text = f"{device_data['index'] + 1}/{device_data['total']} {device_data['device']['name']}"
88
self.__display.print(text, line=2)
89
0 commit comments