Pylint cleanups (#15626)

* Pylint 2 no-else-return fixes

* Remove unneeded abstract-class-not-used pylint disable
This commit is contained in:
Ville Skyttä authored and Paulus Schoutsen committed 2018-07-23 10:16:05 +02:00
1 parent a38c0d6d15
commit b7c336a687
166 files changed
+425 -490

No files matched your search

+3 -3
View File
@@ -122,9 +122,9 @@ class TadoSensor(Entity):
"""Return the unit of measurement."""
if self.zone_variable == "temperature":
return self.hass.config.units.temperature_unit
elif self.zone_variable == "humidity":
if self.zone_variable == "humidity":
return '%'
elif self.zone_variable == "heating":
if self.zone_variable == "heating":
return '%'
@property
@@ -132,7 +132,7 @@ class TadoSensor(Entity):
"""Icon for the sensor."""
if self.zone_variable == "temperature":
return 'mdi:thermometer'
elif self.zone_variable == "humidity":
if self.zone_variable == "humidity":
return 'mdi:water-percent'
def update(self):