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:
parent
5779d64e98
commit
46e030662d
111 changed files with 305 additions and 455 deletions
|
@ -155,8 +155,8 @@ class EightUserSensor(EightSleepUserEntity):
|
|||
elif 'bed_temp' in self._sensor:
|
||||
if self._units == 'si':
|
||||
return '°C'
|
||||
else:
|
||||
return '°F'
|
||||
return '°F'
|
||||
return None
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
|
@ -264,8 +264,7 @@ class EightRoomSensor(EightSleepUserEntity):
|
|||
"""Return the unit the value is expressed in."""
|
||||
if self._units == 'si':
|
||||
return '°C'
|
||||
else:
|
||||
return '°F'
|
||||
return '°F'
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue