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

@ -172,6 +172,7 @@ class Entity(object):
if async_update is None:
return
# pylint: disable=not-callable
run_coroutine_threadsafe(async_update(), self.hass.loop).result()
# DO NOT OVERWRITE
@ -391,5 +392,4 @@ class ToggleEntity(Entity):
"""
if self.is_on:
return self.async_turn_off()
else:
return self.async_turn_on()
return self.async_turn_on()