mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
parent
a2386f871d
commit
623cec206b
@ -17,7 +17,7 @@ from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.util import Throttle
|
||||
from homeassistant.util.temperature import celsius_to_fahrenheit
|
||||
|
||||
REQUIREMENTS = ['Adafruit-DHT==1.3.4']
|
||||
REQUIREMENTS = ['Adafruit-DHT==1.4.0']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@ -57,9 +57,9 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
|
||||
SENSOR_TYPES[SENSOR_TEMPERATURE][1] = hass.config.units.temperature_unit
|
||||
available_sensors = {
|
||||
"AM2302": Adafruit_DHT.AM2302,
|
||||
"DHT11": Adafruit_DHT.DHT11,
|
||||
"DHT22": Adafruit_DHT.DHT22,
|
||||
"AM2302": Adafruit_DHT.AM2302
|
||||
}
|
||||
sensor = available_sensors.get(config.get(CONF_SENSOR))
|
||||
pin = config.get(CONF_PIN)
|
||||
|
@ -20,7 +20,7 @@ voluptuous-serialize==2.0.0
|
||||
--only-binary=all nuimo==0.1.0
|
||||
|
||||
# homeassistant.components.sensor.dht
|
||||
# Adafruit-DHT==1.3.4
|
||||
# Adafruit-DHT==1.4.0
|
||||
|
||||
# homeassistant.components.sensor.sht31
|
||||
Adafruit-GPIO==1.0.3
|
||||
|
Loading…
x
Reference in New Issue
Block a user