Disable no-self-use [pylint] (#70641)

* Disable no-self-use

* Remove disable comments
This commit is contained in:
Marc Mueller
2022-04-25 16:41:01 +02:00
committed by GitHub
parent 9dcbc8469e
commit 9b9b553521
49 changed files with 14 additions and 64 deletions

View File

@@ -236,7 +236,6 @@ class StubPrinter:
def _call_print(self, *objects, **kwargs):
"""Print text."""
# pylint: disable=no-self-use
_LOGGER.warning("Don't use print() inside scripts. Use logger.info() instead")
@@ -246,7 +245,6 @@ class TimeWrapper:
# Class variable, only going to warn once per Home Assistant run
warned = False
# pylint: disable=no-self-use
def sleep(self, *args, **kwargs):
"""Sleep method that warns once."""
if not TimeWrapper.warned: