Run flake8
on more files (#85333)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
This commit is contained in:
parent
3aad153913
commit
156c815499
6 changed files with 19 additions and 15 deletions
|
@ -29,13 +29,13 @@ class HassLoggerFormatChecker(BaseChecker): # type: ignore[misc]
|
|||
options = ()
|
||||
|
||||
def visit_call(self, node: nodes.Call) -> None:
|
||||
"""Called when a Call node is visited."""
|
||||
"""Check for improper log messages."""
|
||||
if not isinstance(node.func, nodes.Attribute) or not isinstance(
|
||||
node.func.expr, nodes.Name
|
||||
):
|
||||
return
|
||||
|
||||
if not node.func.expr.name in LOGGER_NAMES:
|
||||
if node.func.expr.name not in LOGGER_NAMES:
|
||||
return
|
||||
|
||||
if not node.args:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue