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
|
@ -62,9 +62,9 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
|||
elif status == 401:
|
||||
_LOGGER.error("Unauthorized (bad token?) on %s", url)
|
||||
return False
|
||||
else:
|
||||
_LOGGER.error("HTTP error %d on %s", scenes_resp.status, url)
|
||||
return False
|
||||
|
||||
_LOGGER.error("HTTP error %d on %s", scenes_resp.status, url)
|
||||
return False
|
||||
|
||||
|
||||
class LifxCloudScene(Scene):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue