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:
parent
83a5f932d1
commit
5779d64e98
66 changed files with 176 additions and 272 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue