Skip to content

Commit

Permalink
work around build failures also on non-RPi/BB-machines
Browse files Browse the repository at this point in the history
  • Loading branch information
MakeMeASandwich committed Aug 28, 2015
1 parent 76a8bd3 commit 3f4d5ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions homeassistant/components/sensor/dht.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
homeassistant.components.sensor.dht
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Adafruit DHT temperature and humidity sensor.
You need a Python3 compatible version of the Adafruit_Python_DHT library
(e.g. https://github.com/mala-zaba/Adafruit_Python_DHT,
also see requirements.txt).
As this requires access to the GPIO, you will need to run home-assistant
as root (FIXME).
as root.
Configuration:
Expand Down Expand Up @@ -40,7 +43,7 @@
from homeassistant.const import TEMP_FAHRENHEIT
from homeassistant.helpers.entity import Entity

# TODO: update this requirement to upstream as soon as it supports python3
# update this requirement to upstream as soon as it supports python3
REQUIREMENTS = ['git+git://github.com/mala-zaba/Adafruit_Python_DHT']
_LOGGER = logging.getLogger(__name__)
SENSOR_TYPES = {
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ https://github.com/rkabadi/pyedimax/archive/master.zip
RPi.GPIO >=0.5.11

# Adafruit temperature/humidity sensor
git+git://github.com/mala-zaba/Adafruit_Python_DHT
# uncomment on a Raspberry Pi / Beaglebone
#git+git://github.com/mala-zaba/Adafruit_Python_DHT

# PAHO MQTT Binding (mqtt)
paho-mqtt>=1.1
Expand Down

0 comments on commit 3f4d5ea

Please sign in to comment.