mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user