fix screen is blank after update under certain configs
This commit is contained in:
parent
b31a866cf7
commit
32d0af4679
@ -172,14 +172,14 @@ class ScreenPanel:
|
|||||||
if dev in self.devices and not self.devices[dev]["can_target"]:
|
if dev in self.devices and not self.devices[dev]["can_target"]:
|
||||||
show_target = False
|
show_target = False
|
||||||
|
|
||||||
show_power = show_target and self._show_heater_power and power is not None
|
show_power = show_target and self._show_heater_power and power
|
||||||
|
|
||||||
new_label_text = f"{temp:.0f}"
|
new_label_text = f"{temp:.0f}"
|
||||||
if show_target:
|
if show_target:
|
||||||
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 and power:
|
if show_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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user