Skip to content

Commit 30fa2a7

Browse files
committed
feat: add no devices handling
1 parent 75859f5 commit 30fa2a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ def __display_current_device(self) -> None:
7878
self.__change_device(current_device_data)
7979

8080
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+
8187
text = f"{device_data['index'] + 1}/{device_data['total']} {device_data['device']['name']}"
8288
self.__display.print(text, line=2)
8389

0 commit comments

Comments
 (0)