move visibility code together
@@ -231,6 +231,7 @@ def show_hilo():
for i, data in enumerate(hilo_data):
# make it visible
hilo_icons[i].hidden = False
+ hilo_times[i].hidden = False
# icon
hilo_icons[i][0] = 0 if data["type"] == "H" else 1
# time
@@ -240,7 +241,6 @@ def show_hilo():
ampm = "A" if h < 12 else "P"
h = h if h < 13 else h - 12
hilo_times[i].text = "{:>2}:{:02} {}".format(h, m, ampm)
- hilo_times[i].hidden = False
def time_to_sleep():
