Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 9519 super init with non self arg #10190

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

jzohrab
Copy link
Contributor

@jzohrab jzohrab commented Jan 17, 2025

Work-in-progress for issue #9519, to see if I can crack it.

This is going to contain many junk commits that I'll rebase and get rid of later, just doing this so that people can see it and maybe comment.

The first commit adds a failing test case, then there is some debug crap just so I can understand the code as I go.

@jzohrab jzohrab marked this pull request as draft January 17, 2025 16:50
@jzohrab
Copy link
Contributor Author

jzohrab commented Jan 17, 2025

the test file lines 11-13

class Win(Window):
    def __init__(self, txt):
        super().__init__(txt)   # the bad line

Running pytest -k test_super_init_with_non_self_argument -vv, line 13 stops debugging at point i

     -------------------------
     visit call, node: Call(func=<Attribute.__init__ l.13 at 0x105fd42d0>,
         args=[<Name.txt l.13 at 0x106131fd0>],
         keywords=[])
     a
     b
     c
     d
     f
     g
     i

which is this:

        _dp("f")
        if called.args.args is None:
            _dp("g")
            if called.name == "isinstance":
                # Verify whether second argument of isinstance is a valid type
                _dp("h")
                self._check_isinstance_args(node, callable_name)
            # Built-in functions have no argument information.
            _dp("i")
            return

        _dp("j")

so the function actually exits earlier than what was suggested in the original issue.

@jzohrab
Copy link
Contributor Author

jzohrab commented Jan 17, 2025

Current debug cruft:

     visit call, node: Call(func=<Attribute.__init__ l.13 at 0x108038190>,
         args=[<Name.txt l.13 at 0x1078c26d0>],
         keywords=[])
     Data dump for __init__ call
     node frame: FunctionDef.__init__(name='__init__',
                         position=Position(lineno=12, col_offset=4, end_lineno=12, end_col_offset=16),
                         decorators=None,
                         args=<Arguments l.12 at 0x107f7d9d0>,
                         returns=None,
                         type_params=[],
                         doc_node=None,
                         body=[<Expr l.13 at 0x107fbce60>])
     isinst: False
     funcdef: False
     called: <BoundMethod __init__ of builtins.object at 0x4429550992
     frame body: [<Expr l.13 at 0x107fbce60>]
     called in frame body: False
     npa: 1
     dec names: set()
     called.args.args is None
     called.name: __init__
     Returning now

@jzohrab
Copy link
Contributor Author

jzohrab commented Jan 17, 2025

Just prior to turning off the debug cruft, here is the output:

  -  visit call, node: Call(func=<Attribute.__init__ l.13 at 0x104b14190>,
  -      args=[<Name.txt l.13 at 0x10439e6d0>],
  -      keywords=[])
  -  Data dump for __init__ call
  -  call_site: <astroid.arguments.CallSite object at 0x104acc8a0>
  -  call site positional args:: [<Name.txt l.13 at 0x10439e6d0>]
  -  call site keyword args:: {}
  -  call site invalid args: False
  -  call site inv keywords: False
  -  node args: [<Name.txt l.13 at 0x10439e6d0>]
  -  node frame: FunctionDef.__init__(name='__init__',
  -                      position=Position(lineno=12, col_offset=4, end_lineno=12, end_col_offset=16),
  -                      decorators=None,
  -                      args=<Arguments l.12 at 0x104a599d0>,
  -                      returns=None,
  -                      type_params=[],
  -                      doc_node=None,
  -                      body=[<Expr l.13 at 0x104a98e60>])
  -  isinst: False
  -  funcdef: False
  -  called: <BoundMethod __init__ of builtins.object at 0x4373829008
  -  called.args: Arguments(vararg=None,
  -           kwarg=None,
  -           args=None,
  -           defaults=None,
  -           kwonlyargs=[],
  -           posonlyargs=[],
  -           posonlyargs_annotations=[],
  -           kw_defaults=None,
  -           annotations=[],
  -           varargannotation=None,
  -           kwargannotation=None,
  -           kwonlyargs_annotations=[],
  -           type_comment_args=[],
  -           type_comment_kwonlyargs=[],
  -           type_comment_posonlyargs=[])
  -  frame body: [<Expr l.13 at 0x104a98e60>]
  -  called in frame body: False
  -  npa: 1
  -  dec names: set()
    ************* Module super_init_with_non_self_argument
  + tests/regrtest_data/super_init_with_non_self_argument.py:11:0: blah
  - tests/regrtest_data/super_init_with_non_self_argument.py:13:8: E1121: Too many positional arguments for __init__ call (too-many-function-args)
  -  called.args.args is None
  -  called.name: __init__
  -  Returning now
  - 

@jzohrab jzohrab force-pushed the issue_9519_super_init_with_non_self_arg branch from c4f2c85 to e29a7c8 Compare January 17, 2025 18:36
@jzohrab
Copy link
Contributor Author

jzohrab commented Jan 17, 2025

There's a bunch of cruft in the commits and the code, but the idea is there, so I'm going to mark this as ready for review.

I'm sure the actual ast checking for the __init__ call can be done better but I'm not sure how to do it; I came to the current state after putting in all of the debug cruft during my hacking with the test. It's a start, anyway.

@jzohrab jzohrab marked this pull request as ready for review January 17, 2025 18:38
@Pierre-Sassoulas Pierre-Sassoulas added Work in progress False Negative 🦋 No message is emitted but something is wrong with the code labels Jan 17, 2025
@jzohrab
Copy link
Contributor Author

jzohrab commented Jan 17, 2025

As you can probably tell from my hacking, I'm very new at ast hacking, so there may be a far better way to do it than what I have. At least the test case should be good as a starting point.

@jzohrab
Copy link
Contributor Author

jzohrab commented Jan 17, 2025

There are some test failures, but I'll wait for feedback/notes before I try to address them, as there will likely be changes needed.

Copy link
Contributor

🤖 Effect of this PR on checked open source code: 🤖

Effect on home-assistant:
The following messages are now emitted:

  1. locally-disabled:
    Locally disabling broad-exception-caught (W0718)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L717
  2. empty-comment:
    Line with empty comment
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L723
  3. empty-comment:
    Line with empty comment
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L727
  4. empty-comment:
    Line with empty comment
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L730
  5. line-too-long:
    Line too long (108/100)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2426
  6. too-many-lines:
    Too many lines in module (3332/1000)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1
  7. too-complex:
    '__async_setup_with_context' is too complex. The McCabe rating is 23
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L552
  8. too-complex:
    'async_unload' is too complex. The McCabe rating is 17
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L796
  9. too-complex:
    'async_migrate' is too complex. The McCabe rating is 11
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L942
  10. too-complex:
    'async_finish_flow' is too complex. The McCabe rating is 15
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1366
  11. too-complex:
    'async_update_issues' is too complex. The McCabe rating is 11
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2447
  12. too-few-public-methods:
    Too few public methods (0/2)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L295
  13. too-many-arguments:
    Too many arguments (17/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L350
  14. too-many-locals:
    Too many local variables (18/15)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L350
  15. too-many-locals:
    Too many local variables (17/15)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L552
  16. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L633
  17. too-many-branches:
    Too many branches (22/12)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L552
  18. too-many-statements:
    Too many statements (84/50)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L552
  19. consider-using-assignment-expr:
    Use 'if not (supports_unload := hasattr(component, 'async_unload_entry')):' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L841
  20. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L861
  21. too-many-try-statements:
    try clause contains 7 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L848
  22. too-many-return-statements:
    Too many return statements (8/6)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L796
  23. too-many-branches:
    Too many branches (14/12)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L796
  24. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L904
  25. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L914
  26. too-many-positional-arguments:
    Too many positional arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L914
  27. while-used:
    Used while loop
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L955
  28. consider-using-assignment-expr:
    Use 'if not (supports_migrate := hasattr(component, 'async_migrate_entry')):' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L966
  29. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L985
  30. too-many-try-statements:
    try clause contains 6 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L976
  31. protected-access:
    Access to a protected member _async_schedule_save of a client class
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L984
  32. too-many-return-statements:
    Too many return statements (7/6)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L942
  33. while-used:
    Used while loop
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1032
  34. consider-using-any-or-all:
    for loop could be any(flow.flow_id != flow_id and flow.context['source'] in DISCOVERY_SOURCES for flow in self._progress.values())
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1245
  35. magic-value-comparison:
    Consider using a named constant or an enum instead of ''source''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1258
  36. magic-value-comparison:
    Consider using a named constant or an enum instead of ''entry_id''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1265
  37. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1303
  38. consider-using-assignment-expr:
    Use 'if not (flow := await self.async_create_flow(handler, context=context, data=data)):' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1335
  39. protected-access:
    Access to a protected member _async_remove of a client class
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1508
  40. protected-access:
    Access to a protected member _async_clean_up of a client class
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1514
  41. too-many-branches:
    Too many branches (14/12)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1366
  42. magic-value-comparison:
    Consider using a named constant or an enum instead of ''source''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1533
  43. consider-using-any-or-all:
    for loop could be any(match_items <= progress.context.items() and progress.init_data == data for progress in flows)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1592
  44. consider-using-any-or-all:
    for loop could be any(other_flow is not flow and flow.is_matching(other_flow) for other_flow in set(flows))
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1602
  45. consider-using-assignment-expr:
    Use 'if not (entries := self._domain_unique_id_index.get(domain, {}).get(unique_id)):' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1731
  46. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1757
  47. magic-value-comparison:
    Consider using a named constant or an enum instead of ''system_options''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1763
  48. magic-value-comparison:
    Consider using a named constant or an enum instead of '3'.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1779
  49. magic-value-comparison:
    Consider using a named constant or an enum instead of '4'.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1785
  50. consider-using-any-or-all:
    for loop could be any((include_ignore or entry.source != SOURCE_IGNORE) and (include_disabled or not entry.disabled_by) for entry in entries)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1853
  51. consider-ternary-expression:
    Consider rewriting as a ternary expression
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1932
  52. magic-value-comparison:
    Consider using a named constant or an enum instead of ''flow_id''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1962
  53. unused-argument:
    Unused argument 'event'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1970
  54. too-many-arguments:
    Too many arguments (11/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2147
  55. too-many-locals:
    Too many local variables (17/15)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2147
  56. magic-value-comparison:
    Consider using a named constant or an enum instead of ''flipr''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2184
  57. protected-access:
    Access to a protected member _domain_unique_id_index of a client class
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2461
  58. magic-value-comparison:
    Consider using a named constant or an enum instead of ''flipr''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2466
  59. redefined-loop-name:
    Redefining 'entries' from loop (line 2468)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2471
  60. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2480
  61. too-many-public-methods:
    Too many public methods (23/20)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L1795
  62. unused-argument:
    Unused argument 'config_entry'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2578
  63. unused-argument:
    Unused argument 'user_input'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2761
  64. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2801
  65. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2830
  66. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2836
  67. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2842
  68. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2848
  69. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2854
  70. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2860
  71. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2866
  72. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2871
  73. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2876
  74. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2882
  75. too-many-arguments:
    Too many arguments (9/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2914
  76. missing-param-doc:
    "entry" missing in parameter documentation
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2914
  77. too-many-arguments:
    Too many arguments (7/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2961
  78. magic-value-comparison:
    Consider using a named constant or an enum instead of ''entry_id''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2975
  79. too-many-public-methods:
    Too many public methods (21/20)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L2553
  80. too-few-public-methods:
    Too few public methods (1/2)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L3178
  81. magic-value-comparison:
    Consider using a named constant or an enum instead of ''update''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L3268
  82. magic-value-comparison:
    Consider using a named constant or an enum instead of ''disabled_by''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L3269
  83. suppressed-message:
    Suppressed 'broad-exception-caught' (from line 717)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/config_entries.py#L717
  84. too-many-instance-attributes:
    Too many instance attributes (8/7)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/auth/providers/__init__.py#L195
  85. consider-using-assignment-expr:
    Use 'if (auth_module := self._auth_manager.get_auth_mfa_module(self._auth_module_id)) is None:' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/auth/providers/__init__.py#L259
  86. consider-using-assignment-expr:
    Use 'if not (result := await auth_module.async_validate(self.user.id, user_input)):' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/auth/providers/__init__.py#L279
  87. unused-argument:
    Unused argument 'value'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/util/event_type.pyi#L21
  88. too-many-function-args:
    Too many positional arguments for init call
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/util/yaml/loader.py#L142
  89. too-many-function-args:
    Too many positional arguments for init call
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/util/yaml/loader.py#L151
  90. consider-using-assignment-expr:
    Use 'if (entity_comp := hass.data.get(DATA_INSTANCES, {}).get(domain)) is None:' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_component.py#L48
  91. too-many-instance-attributes:
    Too many instance attributes (9/7)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_component.py#L63
  92. consider-using-assignment-expr:
    Use 'if (key := config_entry.entry_id) in self._platforms:' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_component.py#L181
  93. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_component.py#L219
  94. too-many-positional-arguments:
    Too many positional arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_component.py#L219
  95. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_component.py#L256
  96. too-many-positional-arguments:
    Too many positional arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_component.py#L256
  97. consider-using-assignment-expr:
    Use 'if (key := (platform_type, scan_interval, entity_namespace)) not in self._platforms:' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_component.py#L302
  98. unused-argument:
    Unused argument 'event'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_component.py#L392
  99. locally-disabled:
    Locally disabling import-outside-toplevel (C0415)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1539
  100. too-many-lines:
    Too many lines in module (1695/1000)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1
  101. too-complex:
    'async_device_modified' is too complex. The McCabe rating is 12
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L970
  102. too-complex:
    '_async_update_entity' is too complex. The McCabe rating is 12
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1037
  103. too-many-arguments:
    Too many arguments (10/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L646
  104. while-used:
    Used while loop
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L804
  105. too-many-arguments:
    Too many arguments (20/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L814
  106. too-many-locals:
    Too many local variables (28/15)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L814
  107. consider-using-assignment-expr:
    Use 'if (entity_id := self.async_get_entity_id(domain, platform, unique_id)):' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L852
  108. magic-value-comparison:
    Consider using a named constant or an enum instead of ''remove''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L981
  109. magic-value-comparison:
    Consider using a named constant or an enum instead of ''update''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L989
  110. consider-using-assignment-expr:
    Use 'if not (device := device_registry.async_get(event.data['device_id'])):' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L998
  111. too-many-arguments:
    Too many arguments (26/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1037
  112. too-many-locals:
    Too many local variables (34/15)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1037
  113. too-many-arguments:
    Too many arguments (24/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1166
  114. too-many-locals:
    Too many local variables (24/15)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1166
  115. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1221
  116. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1282
  117. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1344
  118. magic-value-comparison:
    Consider using a named constant or an enum instead of ''remove''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1547
  119. unused-argument:
    Unused argument 'event'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1585
  120. magic-value-comparison:
    Consider using a named constant or an enum instead of ''remove''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1599
  121. suppressed-message:
    Suppressed 'import-outside-toplevel' (from line 1539)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/entity_registry.py#L1539
  122. too-many-lines:
    Too many lines in module (1169/1000)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1
  123. unused-argument:
    Unused argument 'variables'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L901
  124. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L975
  125. unused-argument:
    Unused argument 'variables'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L967
  126. magic-value-comparison:
    Consider using a named constant or an enum instead of ''trigger''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1012
  127. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1008
  128. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1002
  129. consider-using-assignment-expr:
    Use 'if (condition := config[CONF_CONDITION]) in ('and', 'not', 'or'):' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1048
  130. use-set-for-membership:
    Consider using set for membership test
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1048
  131. redefined-loop-name:
    Redefining 'sub_cond' from loop (line 1050)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1051
  132. use-set-for-membership:
    Consider using set for membership test
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1059
  133. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1094
  134. while-used:
    Used while loop
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1124
  135. consider-using-assignment-expr:
    Use 'if (condition := config[CONF_CONDITION]) in ('and', 'not', 'or'):' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1131
  136. use-set-for-membership:
    Consider using set for membership test
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1131
  137. while-used:
    Used while loop
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1152
  138. use-set-for-membership:
    Consider using set for membership test
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1159
  139. magic-value-comparison:
    Consider using a named constant or an enum instead of ''device''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/condition.py#L1163
  140. while-used:
    Used while loop
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L104
  141. consider-using-assignment-expr:
    Use 'if (item_id := item[CONF_ID]) in old_ids:' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L209
  142. no-self-use:
    Method could be a function
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L388
  143. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L523
  144. too-many-positional-arguments:
    Too many positional arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L523
  145. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L541
  146. too-many-positional-arguments:
    Too many positional arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L541
  147. magic-value-comparison:
    Consider using a named constant or an enum instead of ''/''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L559
  148. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L632
  149. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L641
  150. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L638
  151. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L658
  152. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L715
  153. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L707
  154. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/collection.py#L734
  155. locally-disabled:
    Locally disabling broad-exception-caught (W0718)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L328
  156. locally-disabled:
    Locally disabling possibly-used-before-assignment (E0606)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L456
  157. too-complex:
    '_async_refresh' is too complex. The McCabe rating is 31
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L351
  158. too-few-public-methods:
    Too few public methods (1/2)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L45
  159. too-many-instance-attributes:
    Too many instance attributes (20/7)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L55
  160. too-many-arguments:
    Too many arguments (10/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L63
  161. overlapping-except:
    Overlapping exceptions (requests.exceptions.RequestException is an ancestor class of requests.exceptions.Timeout)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L313
  162. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L441
  163. magic-value-comparison:
    Consider using a named constant or an enum instead of ''timed out''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L393
  164. too-many-branches:
    Too many branches (34/12)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L351
  165. too-many-statements:
    Too many statements (84/50)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L351
  166. redefined-variable-type:
    Redefinition of self.last_exception type from requests.exceptions.RequestException to urllib.error.URLError
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L390
  167. invalid-overridden-method:
    Method 'available' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L581
  168. useless-suppression:
    Useless suppression of 'possibly-used-before-assignment'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L456
  169. suppressed-message:
    Suppressed 'broad-exception-caught' (from line 328)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/update_coordinator.py#L328
  170. too-many-lines:
    Too many lines in module (2111/1000)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1
  171. too-complex:
    '_async_repeat_step' is too complex. The McCabe rating is 37
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L865
  172. too-complex:
    '_find_referenced_target' is too complex. The McCabe rating is 12
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1552
  173. too-complex:
    '_find_referenced_devices' is too complex. The McCabe rating is 16
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1601
  174. too-complex:
    '_find_referenced_entities' is too complex. The McCabe rating is 16
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1651
  175. too-complex:
    'async_run' is too complex. The McCabe rating is 20
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1702
  176. magic-value-comparison:
    Consider using a named constant or an enum instead of ''trigger''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L759
  177. use-set-for-membership:
    Consider using set for membership test
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L760
  178. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L823
  179. consider-using-assignment-expr:
    Use 'if (trace_element := trace_stack_top(trace_stack_cv)):' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L825
  180. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L850
  181. protected-access:
    Access to a protected member _get_repeat_script of a client class
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L882
  182. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L945
  183. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L993
  184. use-set-for-membership:
    Consider using set for membership test
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L996
  185. too-many-branches:
    Too many branches (29/12)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L865
  186. too-many-statements:
    Too many statements (88/50)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L865
  187. protected-access:
    Access to a protected member _async_get_choose_data of a client class
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1038
  188. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1043
  189. protected-access:
    Access to a protected member _async_get_if_data of a client class
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1059
  190. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1062
  191. use-implicit-booleaness-not-comparison-to-zero:
    "timeout == 0" can be simplified to "not timeout", if it is strictly an int, as 0 is falsey
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1141
  192. unused-argument:
    Unused argument 'context'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1153
  193. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1194
  194. consider-using-assignment-expr:
    Use 'if (resp := self._action[CONF_SET_CONVERSATION_RESPONSE]) is None:' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1215
  195. protected-access:
    Access to a protected member _async_get_sequence_script of a client class
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1248
  196. protected-access:
    Access to a protected member _async_get_parallel_scripts of a client class
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1254
  197. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1290
  198. protected-access:
    Access to a protected member _queue_lck of a client class
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1292
  199. protected-access:
    Access to a protected member _queue_lck of a client class
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1304
  200. unused-argument:
    Unused argument 'point_in_time'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1318
  201. unused-argument:
    Unused argument 'event'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1336
  202. too-many-instance-attributes:
    Too many instance attributes (28/7)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1397
  203. too-many-arguments:
    Too many arguments (15/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1400
  204. too-many-locals:
    Too many local variables (16/15)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1400
  205. confusing-consecutive-elif:
    Consecutive elif with differing indentation level, consider creating a function to separate the inner elif
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1579
  206. confusing-consecutive-elif:
    Consecutive elif with differing indentation level, consider creating a function to separate the inner elif
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1584
  207. confusing-consecutive-elif:
    Consecutive elif with differing indentation level, consider creating a function to separate the inner elif
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1629
  208. confusing-consecutive-elif:
    Consecutive elif with differing indentation level, consider creating a function to separate the inner elif
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1636
  209. too-many-branches:
    Too many branches (15/12)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1601
  210. confusing-consecutive-elif:
    Consecutive elif with differing indentation level, consider creating a function to separate the inner elif
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1680
  211. confusing-consecutive-elif:
    Consecutive elif with differing indentation level, consider creating a function to separate the inner elif
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1687
  212. too-many-branches:
    Too many branches (15/12)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1651
  213. magic-value-comparison:
    Consider using a named constant or an enum instead of ''SILENT''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1723
  214. magic-value-comparison:
    Consider using a named constant or an enum instead of ''SILENT''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1728
  215. consider-ternary-expression:
    Consider rewriting as a ternary expression
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1785
  216. too-many-branches:
    Too many branches (20/12)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1702
  217. too-many-statements:
    Too many statements (55/50)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1702
  218. redefined-loop-name:
    Redefining 'parallel_script' from loop (line 1974)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/script.py#L1976
  219. unused-argument:
    Unused argument 'async_'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/singleton.py#L35
  220. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/singleton.py#L94
  221. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/singleton.py#L98
  222. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/singleton.py#L106
  223. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/singleton.py#L113
  224. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/singleton.py#L117
  225. superfluous-parens:
    Unnecessary parens after ':=' keyword
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1517
  226. too-many-lines:
    Too many lines in module (2007/1000)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1
  227. too-complex:
    '_refresh' is too complex. The McCabe rating is 11
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1219
  228. too-many-instance-attributes:
    Too many instance attributes (9/7)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L974
  229. unused-argument:
    Unused argument 'now'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1102
  230. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1336
  231. too-many-positional-arguments:
    Too many positional arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1336
  232. unused-argument:
    Unused argument 'now'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1417
  233. consider-ternary-expression:
    Consider rewriting as a ternary expression
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1436
  234. too-many-instance-attributes:
    Too many instance attributes (8/7)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1615
  235. too-many-instance-attributes:
    Too many instance attributes (8/7)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1791
  236. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1848
  237. too-many-positional-arguments:
    Too many positional arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1848
  238. magic-value-comparison:
    Consider using a named constant or an enum instead of ''''.*
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1862
  239. consider-using-any-or-all:
    for loop could be any(render_info.all_states or render_info.all_states_lifecycle for render_info in render_infos)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/event.py#L1948
  240. locally-disabled:
    Locally disabling too-many-nested-blocks (R1702)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2192
  241. too-many-lines:
    Too many lines in module (3232/1000)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L1
  242. too-complex:
    'merge_response' is too complex. The McCabe rating is 12
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2170
  243. consider-using-assignment-expr:
    Use 'if (attr := state_obj.attributes.get(name, _SENTINEL)) is _SENTINEL:' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L1885
  244. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L1907
  245. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L1915
  246. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L1934
  247. magic-value-comparison:
    Consider using a named constant or an enum instead of ''ceil''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L1937
  248. magic-value-comparison:
    Consider using a named constant or an enum instead of ''floor''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L1939
  249. magic-value-comparison:
    Consider using a named constant or an enum instead of ''half''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L1941
  250. use-implicit-booleaness-not-comparison-to-zero:
    "precision == 0" can be simplified to "not precision", if it is strictly an int, as 0 is falsey
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L1946
  251. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L1984
  252. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2059
  253. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2061
  254. magic-value-comparison:
    Consider using a named constant or an enum instead of '3'.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2065
  255. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2093
  256. unidiomatic-typecheck:
    Use isinstance() rather than type() for a typecheck.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2142
  257. unidiomatic-typecheck:
    Use isinstance() rather than type() for a typecheck.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2145
  258. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2147
  259. use-implicit-booleaness-not-comparison-to-zero:
    "len(args) == 0" can be simplified to "not len(args)", if it is strictly an int, as 0 is falsey
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2253
  260. use-implicit-booleaness-not-comparison-to-zero:
    "len(args) == 0" can be simplified to "not len(args)", if it is strictly an int, as 0 is falsey
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2274
  261. confusing-consecutive-elif:
    Consecutive elif with differing indentation level, consider creating a function to separate the inner elif
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2283
  262. use-implicit-booleaness-not-comparison-to-zero:
    "len(args) == 0" can be simplified to "not len(args)", if it is strictly an int, as 0 is falsey
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2303
  263. confusing-consecutive-elif:
    Consecutive elif with differing indentation level, consider creating a function to separate the inner elif
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2312
  264. confusing-consecutive-elif:
    Consecutive elif with differing indentation level, consider creating a function to separate the inner elif
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2343
  265. consider-using-assignment-expr:
    Use 'if (result := jinja2.filters.do_int(value, default=default, base=base)) is _SENTINEL:' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2379
  266. consider-using-assignment-expr:
    Use 'if (result := jinja2.filters.do_int(value, default=default, base=base)) is _SENTINEL:' instead
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2387
  267. unused-argument:
    Unused argument 'context'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2597
  268. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2606
  269. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2623
  270. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2650
  271. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2672
  272. no-self-use:
    Method could be a function
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2727
  273. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2827
  274. invalid-name:
    Variable name "_P" doesn't conform to snake_case naming style
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2981
  275. too-many-statements:
    Too many statements (185/50)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2862
  276. magic-value-comparison:
    Consider using a named constant or an enum instead of ''_''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L3174
  277. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L3182
  278. too-many-positional-arguments:
    Too many positional arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L3182
  279. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L3192
  280. too-many-positional-arguments:
    Too many positional arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L3192
  281. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L3201
  282. too-many-positional-arguments:
    Too many positional arguments (6/5)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L3201
  283. suppressed-message:
    Suppressed 'too-many-nested-blocks' (from line 2192)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/helpers/template.py#L2192
  284. line-too-long:
    Line too long (101/100)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/__init__.py#L229
  285. too-many-locals:
    Too many local variables (31/15)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/__init__.py#L64
  286. magic-value-comparison:
    Consider using a named constant or an enum instead of ''energy_site_id''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/__init__.py#L147
  287. magic-value-comparison:
    Consider using a named constant or an enum instead of ''wall_connectors''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/__init__.py#L152
  288. too-many-statements:
    Too many statements (60/50)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/__init__.py#L64
  289. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/__init__.py#L251
  290. magic-value-comparison:
    Consider using a named constant or an enum instead of ''vehicle_data''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/__init__.py#L274
  291. magic-value-comparison:
    Consider using a named constant or an enum instead of ''state''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/__init__.py#L277
  292. too-many-ancestors:
    Too many ancestors (8/7)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/switch.py#L173
  293. import-error:
    Unable to import 'propcache'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L6
  294. import-error:
    Unable to import 'tesla_fleet_api'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L7
  295. import-error:
    Unable to import 'tesla_fleet_api.const'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L8
  296. import-error:
    Unable to import 'teslemetry_stream'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L9
  297. too-many-function-args:
    Too many positional arguments for init call
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L64
  298. invalid-overridden-method:
    Method 'available' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L70
  299. abstract-method:
    Method '_async_update_attrs' is abstract in class 'TeslemetryEntity' but is not overridden in child class 'TeslemetryVehicleEntity'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L104
  300. abstract-method:
    Method '_async_update_attrs' is abstract in class 'TeslemetryEntity' but is not overridden in child class 'TeslemetryEnergyLiveEntity'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L134
  301. abstract-method:
    Method '_async_update_attrs' is abstract in class 'TeslemetryEntity' but is not overridden in child class 'TeslemetryEnergyInfoEntity'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L155
  302. abstract-method:
    Method '_async_update_attrs' is abstract in class 'TeslemetryEntity' but is not overridden in child class 'TeslemetryEnergyHistoryEntity'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L174
  303. abstract-method:
    Method '_async_update_attrs' is abstract in class 'TeslemetryEntity' but is not overridden in child class 'TeslemetryWallConnectorEntity'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L193
  304. too-many-instance-attributes:
    Too many instance attributes (9/7)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/entity.py#L249
  305. import-error:
    Unable to import 'teslemetry_stream'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/models.py#L11
  306. too-many-instance-attributes:
    Too many instance attributes (9/7)
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/models.py#L34
  307. import-error:
    Unable to import 'tesla_fleet_api.const'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/cover.py#L8
  308. import-error:
    Unable to import 'teslemetry_stream'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/cover.py#L9
  309. import-error:
    Unable to import 'teslemetry_stream.const'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/cover.py#L10
  310. magic-value-comparison:
    Consider using a named constant or an enum instead of ''2024.26''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/cover.py#L47
  311. magic-value-comparison:
    Consider using a named constant or an enum instead of ''2024.44.25''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/cover.py#L53
  312. magic-value-comparison:
    Consider using a named constant or an enum instead of ''2024.26''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/cover.py#L61
  313. magic-value-comparison:
    Consider using a named constant or an enum instead of ''2024.26''.
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/cover.py#L69
  314. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/cover.py#L37
  315. abstract-method:
    Method 'close_cover' is abstract in class 'CoverEntity' but is not overridden in child class 'CoverRestoreEntity'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/cover.py#L84
  316. abstract-method:
    Method 'open_cover' is abstract in class 'CoverEntity' but is not overridden in child class 'CoverRestoreEntity'
    https://github.com/home-assistant/core/blob/abc256fb3e1163859e77be5d478912b0205ea21b/homeassistant/components/teslemetry/cover.py#L84
  317. magic-value-comparison:
    *Consider using a named constant...

This comment was truncated because GitHub allows only 65536 characters in a comment.

This comment was generated for commit 94a32c2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
False Negative 🦋 No message is emitted but something is wrong with the code Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants