Merge pull request #115 from cow77/patch-3

Update __init__.py
This commit is contained in:
Manuel83
2017-09-04 16:34:25 +02:00
committed by GitHub
@@ -18,6 +18,7 @@ def getSensors():
arr = []
for dirname in os.listdir('/sys/bus/w1/devices'):
if (dirname.startswith("28") or dirname.startswith("10")):
cbpi.app.logger.info("Device %s Found (Family: 28/10, Thermometer on GPIO4 (w1))" % dirname)
arr.append(dirname)
return arr
except: