From cf87b76b0c5b7df729e8331e2d01cf20c0902c83 Mon Sep 17 00:00:00 2001 From: superpuffin <35958013+superpuffin@users.noreply.github.com> Date: Mon, 30 Jul 2018 16:15:13 +0200 Subject: [PATCH] Upgrade Adafruit-DHT to 1.3.3 (#15706) * Change to newer pip package The package Adafruit_Python_DHT==1.3.2 was broken and would not install, breaking DHT sensor support in Home assistant. It has since been fixed in Adafruit-DHT==1.3.3. See: https://github.com/adafruit/Adafruit_Python_DHT/issues/99 * Update requirements_all.txt New or updated dependencies have been added to `requirements_all.txt` by running `script/gen_requirements_all.py`. * Comment out Adafruit-DHT Adafruit_Python_DHT changed name to Adafruit-DHT, which still need pyx support breaking our CI, need to be comment out. * Update requirements_all.txt --- homeassistant/components/sensor/dht.py | 2 +- requirements_all.txt | 6 +++--- script/gen_requirements_all.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/sensor/dht.py b/homeassistant/components/sensor/dht.py index 6770594b919961..e3aaf2f84840fd 100644 --- a/homeassistant/components/sensor/dht.py +++ b/homeassistant/components/sensor/dht.py @@ -17,7 +17,7 @@ from homeassistant.util import Throttle from homeassistant.util.temperature import celsius_to_fahrenheit -REQUIREMENTS = ['Adafruit_Python_DHT==1.3.2'] +REQUIREMENTS = ['Adafruit-DHT==1.3.3'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index 9be2d66f327e0f..eda2b604115756 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -14,6 +14,9 @@ voluptuous==0.11.3 # homeassistant.components.nuimo_controller --only-binary=all nuimo==0.1.0 +# homeassistant.components.sensor.dht +# Adafruit-DHT==1.3.3 + # homeassistant.components.sensor.sht31 Adafruit-GPIO==1.0.3 @@ -23,9 +26,6 @@ Adafruit-SHT31==1.0.2 # homeassistant.components.bbb_gpio # Adafruit_BBIO==1.0.0 -# homeassistant.components.sensor.dht -# Adafruit_Python_DHT==1.3.2 - # homeassistant.components.doorbird DoorBirdPy==0.1.3 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index d92502de0782f4..28c96e737ff171 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -11,7 +11,7 @@ 'RPi.GPIO', 'raspihats', 'rpi-rf', - 'Adafruit_Python_DHT', + 'Adafruit-DHT', 'Adafruit_BBIO', 'fritzconnection', 'pybluez',