From 3bb7cf51ecacf62fa9c4eed6c218d80437a2dce0 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Tue, 21 Apr 2020 20:43:34 +0200 Subject: [PATCH] [modules/redshift] Try to improve transition removal For some reason, the transition state info sticks around even at night --- modules/core/redshift.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/redshift.py b/modules/core/redshift.py index 846ad88..2807422 100644 --- a/modules/core/redshift.py +++ b/modules/core/redshift.py @@ -46,7 +46,7 @@ def get_redshift_value(module): except Exception: res = '' widget.set('temp', 'n/a') - widget.set('transition', None) + widget.set('transition', '') widget.set('state', 'day') for line in res.split('\n'): line = line.lower() @@ -87,7 +87,7 @@ class Module(core.module.Module): def text(self, widget): val = widget.get('temp', 'n/a') - transition = widget.get('transition', None) + transition = widget.get('transition', '') if transition: val = '{} {}'.format(val, transition) return val