use unknown networkstrength, not none (#1222)

old-commit-hash: d161584f991dda01ddefa76ac0854ea2886b80e5
This commit is contained in:
Andrew Valish
2020-03-09 10:48:28 -07:00
committed by GitHub
parent 5849f719ef
commit ad3b81b0e0
+1 -1
View File
@@ -233,7 +233,7 @@ def get_network_strength(network_type):
return network_strength
if network_type == NetworkType.wifi:
out = subprocess.check_output('dumpsys connectivity', shell=True).decode('ascii')
network_strength = NetworkStrength.none
network_strength = NetworkStrength.unknown
for line in out.split('\n'):
if "SignalStrength" in line:
arr = line.split(' ')