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
@@ -162,8 +162,7 @@ class WemoSwitch(SwitchDevice):
|
||||
return STATE_OFF
|
||||
elif standby_state == WEMO_STANDBY:
|
||||
return STATE_STANDBY
|
||||
else:
|
||||
return STATE_UNKNOWN
|
||||
return STATE_UNKNOWN
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
@@ -186,8 +185,7 @@ class WemoSwitch(SwitchDevice):
|
||||
"""Return the icon of device based on its type."""
|
||||
if self._model_name == 'CoffeeMaker':
|
||||
return 'mdi:coffee'
|
||||
else:
|
||||
return super().icon
|
||||
return None
|
||||
|
||||
def turn_on(self, **kwargs):
|
||||
"""Turn the switch on."""
|
||||
|
||||
Reference in new issue
Block a user