Fixed light sensor bug in plyer

This commit is contained in:
Mark Qvist 2023-12-03 02:05:12 +01:00
parent e69f0b9055
commit ecf13e0041
1 changed files with 1 additions and 1 deletions

View File

@ -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