gpu_temp: setting "display_if" default value fixed

gpu_temp setting "display_if" (introduced in https://github.com/enkore/i3pystatus/pull/382) default value expected to be string (like in https://github.com/enkore/i3pystatus/pull/383)

Error message:
```
GPUTemperature: TypeError: eval() arg 1 must be a string, bytes or code object
```
This commit is contained in:
Nikolay Polyarniy 2016-12-01 19:09:33 +03:00 committed by GitHub
parent 78392fc499
commit 97fd940e17

View File

@ -24,7 +24,7 @@ class GPUTemperature(IntervalModule):
color = "#FFFFFF"
alert_temp = 90
alert_color = "#FF0000"
display_if = True
display_if = 'True'
def run(self):
temp = gpu.query_nvidia_smi().temp