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
|
@ -146,7 +146,4 @@ class ArwnSensor(Entity):
|
|||
@property
|
||||
def icon(self):
|
||||
"""Return the icon of device based on its type."""
|
||||
if self._icon:
|
||||
return self._icon
|
||||
else:
|
||||
return super().icon
|
||||
return self._icon
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue