fix latest flake8 error (#135)

This commit is contained in:
Solvik 2020-06-15 15:46:09 +02:00 committed by GitHub
parent d227f35964
commit feec16c4fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ class PowerSupply():
sn = psu.get('Serial Number', '').strip()
# Let's assume that if no serial and no power reported we skip it
if sn == '' and max_power == None:
if sn == '' and max_power is None:
continue
if sn == '':
sn = 'N/A'