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:
|
if battery is not None:
|
||||||
from logitech_receiver.common import NamedInt as _NamedInt
|
from logitech_receiver.common import NamedInt as _NamedInt
|
||||||
level, status = battery
|
level, status = battery
|
||||||
if level:
|
if level is not None:
|
||||||
if isinstance(level, _NamedInt):
|
if isinstance(level, _NamedInt):
|
||||||
text = str(level)
|
text = str(level)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue