From ecf13e00416edcc040e5233402aada441a8f5650 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 3 Dec 2023 02:05:12 +0100 Subject: [PATCH] Fixed light sensor bug in plyer --- sbapp/plyer/platforms/android/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbapp/plyer/platforms/android/light.py b/sbapp/plyer/platforms/android/light.py index 13dd394..6e74b13 100644 --- a/sbapp/plyer/platforms/android/light.py +++ b/sbapp/plyer/platforms/android/light.py @@ -44,7 +44,7 @@ class AndroidLight(Light): listener = None def _get_illumination(self): - if self.listener and self.listener.value: + if self.listener and self.listener.value != None: light = self.listener.value return light