Fix pylint 1.7.2 no-else-return issues (#8361)
* Fix pylint 1.7.2 no-else-return issues * Update tomato.py
This commit is contained in:
1 parent
5779d64e98
commit
46e030662d
111 files changed
+305
-455
No files matched your search
@@ -187,9 +187,9 @@ class DarkSkySensor(Entity):
|
||||
"""Return the name of the sensor."""
|
||||
if self.forecast_day == 0:
|
||||
return '{} {}'.format(self.client_name, self._name)
|
||||
else:
|
||||
return '{} {} {}'.format(
|
||||
self.client_name, self._name, self.forecast_day)
|
||||
|
||||
return '{} {} {}'.format(
|
||||
self.client_name, self._name, self.forecast_day)
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
@@ -214,8 +214,8 @@ class DarkSkySensor(Entity):
|
||||
|
||||
if self._icon in CONDITION_PICTURES:
|
||||
return CONDITION_PICTURES[self._icon]
|
||||
else:
|
||||
return None
|
||||
|
||||
return None
|
||||
|
||||
def update_unit_of_measurement(self):
|
||||
"""Update units based on unit system."""
|
||||
|
||||
Reference in new issue
Block a user