mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-12 11:13:46 +08:00
Zone 5
This commit is contained in:
@@ -122,9 +122,9 @@ class Sidebar(Widget):
|
||||
thermal_status = device_state.thermalStatus
|
||||
temperature = f"{int(device_state.maxTempC)}°C"
|
||||
|
||||
if thermal_status == ThermalStatus.green:
|
||||
if thermal_status == ThermalStatus.ok:
|
||||
self._temp_status.update(tr_noop("TEMP"), temperature, Colors.GOOD)
|
||||
elif thermal_status == ThermalStatus.yellow:
|
||||
elif thermal_status == ThermalStatus.warmDEPRECATED:
|
||||
self._temp_status.update(tr_noop("TEMP"), temperature, Colors.WARNING)
|
||||
else:
|
||||
self._temp_status.update(tr_noop("TEMP"), temperature, Colors.DANGER)
|
||||
|
||||
Reference in New Issue
Block a user