It should check for None specificly
This commit is contained in:
parent
7a75813a84
commit
8485494ea7
|
@ -107,7 +107,7 @@ def _print_device(dev):
|
|||
if battery is not None:
|
||||
from logitech_receiver.common import NamedInt as _NamedInt
|
||||
level, status = battery
|
||||
if level:
|
||||
if level is not None:
|
||||
if isinstance(level, _NamedInt):
|
||||
text = str(level)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue