Fix some issues for PyLint 1.7.2 (#8356)

* Fix some issues for PyLint 1.7.2

* More fixes

* Revert position change for cover
This commit is contained in:
Paulus Schoutsen 2017-07-05 20:02:16 -07:00 committed by GitHub
parent 83a5f932d1
commit 5779d64e98
66 changed files with 176 additions and 272 deletions

View file

@ -42,8 +42,6 @@ def async_trigger(hass, config, action):
},
})
# Do something to call action
if event == SUN_EVENT_SUNRISE:
return async_track_sunrise(hass, call_action, offset)
else:
return async_track_sunset(hass, call_action, offset)
return async_track_sunset(hass, call_action, offset)