Commit 7572da4f authored by Tom Hartley's avatar Tom Hartley

Merge pull request #8 from rjlanc/patch-1

Fix typo in dht22.py
parents ba1ab57e 167c36e0
import sensor import sensor
import dhtreader import dhtreader
import time import time
...@@ -17,7 +16,7 @@ class DHT22(sensor.Sensor): ...@@ -17,7 +16,7 @@ class DHT22(sensor.Sensor):
self.valSymbol = "C" self.valSymbol = "C"
if "unit" in data: if "unit" in data:
if data["unit"]=="F": if data["unit"]=="F":
self.valUnit = "Farenheight" self.valUnit = "Fahrenheit"
self.valSymbol = "F" self.valSymbol = "F"
elif "h" in data["measurement"].lower(): elif "h" in data["measurement"].lower():
self.valName = "Relative_Humidity" self.valName = "Relative_Humidity"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment