Narrow scope of various pylint inline disables (#15364)
* Narrow scope of various pylint inline disables * Whitespace tweaks
This commit is contained in:
1 parent
78c38749ab
commit
707b7c202d
30 files changed
+52
-75
No files matched your search
@@ -53,8 +53,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the DHT sensor."""
|
||||
# pylint: disable=import-error
|
||||
import Adafruit_DHT
|
||||
import Adafruit_DHT # pylint: disable=import-error
|
||||
|
||||
SENSOR_TYPES[SENSOR_TEMPERATURE][1] = hass.config.units.temperature_unit
|
||||
available_sensors = {
|
||||
|
||||
Reference in new issue
Block a user