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
@@ -28,8 +28,7 @@ class VolvoSensor(VolvoEntity):
|
||||
val = getattr(self.vehicle, self._attribute)
|
||||
if self._attribute == 'odometer':
|
||||
return round(val / 1000) # km
|
||||
else:
|
||||
return val
|
||||
return val
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
|
||||
Reference in new issue
Block a user