fix issue with temp_fan that broke if show_power was True

This commit is contained in:
alfrix 2024-05-05 09:22:05 -03:00
parent 2e23081914
commit b31a866cf7

View File

@ -179,7 +179,7 @@ class ScreenPanel:
new_label_text += f"/{target:.0f}" new_label_text += f"/{target:.0f}"
if dev not in self.devices: if dev not in self.devices:
new_label_text += "°" new_label_text += "°"
if show_power: if show_power and power:
if lines == 2: if lines == 2:
# The label should wrap, but it doesn't work # The label should wrap, but it doesn't work
# this is a workaround # this is a workaround