Pylint cleanups (#15626)

* Pylint 2 no-else-return fixes

* Remove unneeded abstract-class-not-used pylint disable
This commit is contained in:
Ville Skyttä 2018-07-23 11:16:05 +03:00 committed by Paulus Schoutsen
parent a38c0d6d15
commit b7c336a687
166 changed files with 425 additions and 490 deletions

View file

@ -119,7 +119,7 @@ class Script():
self.hass.async_add_job(self._change_listener)
return
elif CONF_WAIT_TEMPLATE in action:
if CONF_WAIT_TEMPLATE in action:
# Call ourselves in the future to continue work
wait_template = action[CONF_WAIT_TEMPLATE]
wait_template.hass = self.hass
@ -147,7 +147,7 @@ class Script():
return
elif CONF_CONDITION in action:
if CONF_CONDITION in action:
if not self._async_check_condition(action, variables):
break