mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 12:30:31 +00:00
Update docstrings (#7374)
* Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstring * Update docstrings * Update docstrings * Fix lint issues * Update docstrings * Revert changes in dict
This commit is contained in:
committed by
Paulus Schoutsen
parent
0e08925259
commit
a4f1f6e724
@@ -49,7 +49,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Setup the DHT sensor."""
|
||||
"""Set up the DHT sensor."""
|
||||
# pylint: disable=import-error
|
||||
import Adafruit_DHT
|
||||
|
||||
@@ -139,8 +139,8 @@ class DHTClient(object):
|
||||
@Throttle(MIN_TIME_BETWEEN_UPDATES)
|
||||
def update(self):
|
||||
"""Get the latest data the DHT sensor."""
|
||||
humidity, temperature = self.adafruit_dht.read_retry(self.sensor,
|
||||
self.pin)
|
||||
humidity, temperature = self.adafruit_dht.read_retry(
|
||||
self.sensor, self.pin)
|
||||
if temperature:
|
||||
self.data[SENSOR_TEMPERATURE] = temperature
|
||||
if humidity:
|
||||
|
||||
Reference in New Issue
Block a user