mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
work around build failures also on non-RPi/BB-machines
This commit is contained in:
parent
76a8bd3969
commit
3f4d5eae1c
@ -2,8 +2,11 @@
|
|||||||
homeassistant.components.sensor.dht
|
homeassistant.components.sensor.dht
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Adafruit DHT temperature and humidity sensor.
|
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 this requires access to the GPIO, you will need to run home-assistant
|
||||||
as root (FIXME).
|
as root.
|
||||||
|
|
||||||
Configuration:
|
Configuration:
|
||||||
|
|
||||||
@ -40,7 +43,7 @@ from homeassistant.util import Throttle
|
|||||||
from homeassistant.const import TEMP_FAHRENHEIT
|
from homeassistant.const import TEMP_FAHRENHEIT
|
||||||
from homeassistant.helpers.entity import Entity
|
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']
|
REQUIREMENTS = ['git+git://github.com/mala-zaba/Adafruit_Python_DHT']
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
SENSOR_TYPES = {
|
SENSOR_TYPES = {
|
||||||
|
@ -106,7 +106,8 @@ https://github.com/rkabadi/pyedimax/archive/master.zip
|
|||||||
RPi.GPIO >=0.5.11
|
RPi.GPIO >=0.5.11
|
||||||
|
|
||||||
# Adafruit temperature/humidity sensor
|
# 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 Binding (mqtt)
|
||||||
paho-mqtt>=1.1
|
paho-mqtt>=1.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user