Airthings / waveplus-reader

MIT License
133 stars 61 forks source link

parseSerialNumber fix for None param #22

Closed urmasrahu closed 3 years ago

urmasrahu commented 3 years ago

Sometimes dev.getValueText() returns None from a device, this would cause an exception in parseSerialNumber and the script will fail. Not sure if it can actually return a string "None", if not then the 2nd part of the "if" expression could be removed.