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

Fix a false positive with singledispatchmethod-function #9599

Merged

Conversation

mbyrnepr2
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix
✨ New feature
πŸ”¨ Refactoring
πŸ“œ Docs

Description

Fix a false positive with singledispatchmethod-function when a method is decorated with both functools.singledispatchmethod and staticmethod.

Closes #9531

…thod is decorated with both ``functools.singledispatchmethod`` and ``staticmethod``.

Closes pylint-dev#9531
Copy link

codecov bot commented May 5, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 95.82%. Comparing base (df5533f) to head (483d943).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9599   +/-   ##
=======================================
  Coverage   95.82%   95.82%           
=======================================
  Files         173      173           
  Lines       18833    18835    +2     
=======================================
+ Hits        18046    18049    +3     
+ Misses        787      786    -1     
Files Coverage Ξ”
pylint/checkers/stdlib.py 96.94% <100.00%> (+0.02%) ⬆️

... and 1 file with indirect coverage changes

Copy link
Contributor

github-actions bot commented May 5, 2024

πŸ€– Effect of this PR on checked open source code: πŸ€–

Effect on astroid:
The following messages are now emitted:

  1. protected-access:
    Access to a protected member _metaclass_lookup_attribute of a client class
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/manager.py#L462
  2. suppressed-message:
    Suppressed 'import-outside-toplevel' (from line 442)
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/manager.py#L448
  3. line-too-long:
    Line too long (108/100)
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L257
  4. too-complex:
    'find_module' is too complex. The McCabe rating is 11
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L129
  5. missing-class-docstring:
    Missing class docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L31
  6. missing-function-docstring:
    Missing function or method docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L32
  7. too-few-public-methods:
    Too few public methods (1/2)
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L31
  8. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L145
  9. magic-value-comparison:
    Consider using a named constant or an enum instead of ''distutils''.
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L197
  10. missing-function-docstring:
    Missing function or method docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L324
  11. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L325
  12. magic-value-comparison:
    Consider using a named constant or an enum instead of 'b'pkgutil''.
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L330
  13. magic-value-comparison:
    Consider using a named constant or an enum instead of 'b'extend_path''.
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L330
  14. magic-value-comparison:
    Consider using a named constant or an enum instead of 'b'pkg_resources''.
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L332
  15. magic-value-comparison:
    Consider using a named constant or an enum instead of 'b'declare_namespace(name)''.
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L332
  16. missing-function-docstring:
    Missing function or method docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L337
  17. missing-function-docstring:
    Missing function or method docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L343
  18. confusing-consecutive-elif:
    Consecutive elif with differing indentation level, consider creating a function to separate the inner elif
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L358
  19. consider-using-f-string:
    Formatting a regular string which could be an f-string
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L355
  20. consider-using-f-string:
    Formatting a regular string which could be an f-string
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L360
  21. missing-function-docstring:
    Missing function or method docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L371
  22. consider-using-assignment-expr:
    Use 'if (meta_finder_name := meta_finder.class.name) not in _MetaPathFinderModuleTypes:' instead
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L391
  23. consider-using-assignment-expr:
    Use 'if (spec := meta_finder.find_spec(modname, submodule_path)):' instead
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L412
  24. missing-function-docstring:
    Missing function or method docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L448
  25. while-used:
    Used while loop
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L458

The following messages are no longer emitted:

  1. protected-access:
    Access to a protected member _metaclass_lookup_attribute of a client class
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/manager.py#L461
  2. line-too-long:
    Line too long (108/100)
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L256
  3. too-complex:
    'find_module' is too complex. The McCabe rating is 11
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L128
  4. missing-class-docstring:
    Missing class docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L30
  5. missing-function-docstring:
    Missing function or method docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L31
  6. too-few-public-methods:
    Too few public methods (1/2)
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L30
  7. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L144
  8. magic-value-comparison:
    Consider using a named constant or an enum instead of ''distutils''.
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L196
  9. missing-function-docstring:
    Missing function or method docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L323
  10. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L324
  11. magic-value-comparison:
    Consider using a named constant or an enum instead of 'b'pkgutil''.
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L329
  12. magic-value-comparison:
    Consider using a named constant or an enum instead of 'b'extend_path''.
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L329
  13. magic-value-comparison:
    Consider using a named constant or an enum instead of 'b'pkg_resources''.
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L331
  14. magic-value-comparison:
    Consider using a named constant or an enum instead of 'b'declare_namespace(name)''.
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L331
  15. missing-function-docstring:
    Missing function or method docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L336
  16. missing-function-docstring:
    Missing function or method docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L342
  17. confusing-consecutive-elif:
    Consecutive elif with differing indentation level, consider creating a function to separate the inner elif
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L357
  18. consider-using-f-string:
    Formatting a regular string which could be an f-string
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L354
  19. consider-using-f-string:
    Formatting a regular string which could be an f-string
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L359
  20. missing-function-docstring:
    Missing function or method docstring
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L370
  21. consider-using-assignment-expr:
    Use 'if (meta_finder_name := meta_finder.class.name) not in _MetaPathFinderModuleTypes:' instead
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L390
  22. consider-using-assignment-expr:
    Use 'if (spec := meta_finder.find_spec(modname, submodule_path)):' instead
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L411
  23. while-used:
    Used while loop
    https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L452

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

  1. line-too-long:
    Line too long (112/100)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L1948
  2. line-too-long:
    Line too long (117/100)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2001
  3. too-many-lines:
    Too many lines in module (2692/1000)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L1
  4. unused-argument:
    Unused argument 'config_entry'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2106
  5. unused-argument:
    Unused argument 'user_input'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2254
  6. unused-argument:
    Unused argument 'user_input'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2259
  7. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2299
  8. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2328
  9. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2334
  10. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2340
  11. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2346
  12. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2352
  13. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2358
  14. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2364
  15. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2369
  16. unused-argument:
    Unused argument 'discovery_info'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2374
  17. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2380
  18. too-many-arguments:
    Too many arguments (8/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2404
  19. consider-using-assignment-expr:
    Use 'if (entry := self.hass.config_entries.async_get_entry(config_entry_id)) is None:' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2436
  20. consider-using-assignment-expr:
    Use 'if (entry := self.hass.config_entries.async_get_entry(flow.handler)) is None:' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2471
  21. too-few-public-methods:
    Too few public methods (1/2)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2536
  22. magic-value-comparison:
    Consider using a named constant or an enum instead of ''update''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2627
  23. magic-value-comparison:
    Consider using a named constant or an enum instead of ''disabled_by''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/config_entries.py#L2628
  24. too-complex:
    'async_load' is too complex. The McCabe rating is 26
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L285
  25. too-many-arguments:
    Too many arguments (8/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L84
  26. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L146
  27. too-many-arguments:
    Too many arguments (9/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L200
  28. too-many-locals:
    Too many local variables (33/15)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L285
  29. redefined-loop-name:
    Redefining 'group_id' from loop (line 392)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L395
  30. magic-value-comparison:
    Consider using a named constant or an enum instead of ''jwt_key''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L427
  31. consider-using-assignment-expr:
    Use 'if (created_at := dt_util.parse_datetime(rt_dict['created_at'])) is None:' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L431
  32. consider-ternary-expression:
    Consider rewriting as a ternary expression
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L448
  33. magic-value-comparison:
    Consider using a named constant or an enum instead of ''credential_id''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L480
  34. too-many-branches:
    Too many branches (29/12)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L285
  35. too-many-statements:
    Too many statements (93/50)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/auth/auth_store.py#L285
  36. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/diagnostics.py#L17
  37. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L28
  38. abstract-method:
    Method 'async_browse_media' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  39. abstract-method:
    Method 'clear_playlist' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  40. abstract-method:
    Method 'join_players' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  41. abstract-method:
    Method 'media_next_track' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  42. abstract-method:
    Method 'media_pause' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  43. abstract-method:
    Method 'media_play' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  44. abstract-method:
    Method 'media_previous_track' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  45. abstract-method:
    Method 'media_seek' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  46. abstract-method:
    Method 'media_stop' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  47. abstract-method:
    Method 'mute_volume' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  48. abstract-method:
    Method 'play_media' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  49. abstract-method:
    Method 'select_sound_mode' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  50. abstract-method:
    Method 'select_source' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  51. abstract-method:
    Method 'set_repeat' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  52. abstract-method:
    Method 'set_shuffle' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  53. abstract-method:
    Method 'set_volume_level' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  54. abstract-method:
    Method 'turn_off' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  55. abstract-method:
    Method 'turn_on' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  56. abstract-method:
    Method 'unjoin_player' is abstract in class 'MediaPlayerEntity' but is not overridden in child class 'AndroidTVRemoteMediaPlayerEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L37
  57. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/media_player.py#L193
  58. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/__init__.py#L50
  59. unused-argument:
    Unused argument 'event'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/__init__.py#L75
  60. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/remote.py#L30
  61. abstract-method:
    Method 'delete_command' is abstract in class 'RemoteEntity' but is not overridden in child class 'AndroidTVRemoteEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/remote.py#L39
  62. abstract-method:
    Method 'learn_command' is abstract in class 'RemoteEntity' but is not overridden in child class 'AndroidTVRemoteEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/remote.py#L39
  63. abstract-method:
    Method 'send_command' is abstract in class 'RemoteEntity' but is not overridden in child class 'AndroidTVRemoteEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/remote.py#L39
  64. abstract-method:
    Method 'turn_off' is abstract in class 'ToggleEntity' but is not overridden in child class 'AndroidTVRemoteEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/remote.py#L39
  65. abstract-method:
    Method 'turn_on' is abstract in class 'ToggleEntity' but is not overridden in child class 'AndroidTVRemoteEntity'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/remote.py#L39
  66. consider-using-assignment-expr:
    Use 'if (activity := kwargs.get(ATTR_ACTIVITY, '')):' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/androidtv_remote/remote.py#L68
  67. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L54
  68. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L54
  69. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L59
  70. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L59
  71. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L59
  72. unexpected-keyword-arg:
    Unexpected keyword argument 'suggested_display_precision' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L59
  73. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L66
  74. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L66
  75. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L66
  76. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_registry_enabled_default' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L66
  77. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L73
  78. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L73
  79. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L73
  80. unexpected-keyword-arg:
    Unexpected keyword argument 'suggested_display_precision' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L73
  81. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L80
  82. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L80
  83. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L80
  84. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L86
  85. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L86
  86. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L86
  87. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L92
  88. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L92
  89. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L92
  90. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L98
  91. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L98
  92. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L103
  93. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L103
  94. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L103
  95. unexpected-keyword-arg:
    Unexpected keyword argument 'suggested_display_precision' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L103
  96. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L110
  97. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L110
  98. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L110
  99. unexpected-keyword-arg:
    Unexpected keyword argument 'options' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L110
  100. prefer-typing-namedtuple:
    Prefer 'typing.NamedTuple' over 'collections.namedtuple'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L119
  101. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/sensor.py#L162
  102. too-complex:
    'async_setup_entry' is too complex. The McCabe rating is 14
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/__init__.py#L113
  103. import-error:
    Unable to import 'aiohttp'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/__init__.py#L6
  104. import-error:
    Unable to import 'habitipy.aio'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/__init__.py#L7
  105. import-error:
    Unable to import 'voluptuous'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/__init__.py#L8
  106. too-few-public-methods:
    Too few public methods (1/2)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/__init__.py#L116
  107. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/__init__.py#L134
  108. import-error:
    Unable to import 'aiohttp'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/coordinator.py#L10
  109. import-error:
    Unable to import 'habitipy.aio'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/coordinator.py#L11
  110. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/habitica/coordinator.py#L48
  111. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/bring/__init__.py#L39
  112. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/bring/todo.py#L36
  113. too-many-instance-attributes:
    Too many instance attributes (18/7)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L285
  114. too-many-arguments:
    Too many arguments (10/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L291
  115. magic-value-comparison:
    Consider using a named constant or an enum instead of ''recorder''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L353
  116. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L372
  117. use-set-for-membership:
    Consider using set for membership test
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L374
  118. magic-value-comparison:
    Consider using a named constant or an enum instead of ''on''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L375
  119. consider-using-assignment-expr:
    Use 'if (source_state := self.hass.states.get(self._source_entity_id)) is None:' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L425
  120. consider-using-assignment-expr:
    Use 'if (source_device_class := source_state.attributes.get(ATTR_DEVICE_CLASS)) is None:' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L428
  121. too-many-return-statements:
    Too many return statements (7/6)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L419
  122. while-used:
    Used while loop
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L482
  123. unused-argument:
    Unused argument 'now'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L557
  124. use-implicit-booleaness-not-comparison-to-zero:
    "self._precision == 0" can be simplified to "not self._precision", if it is strictly an int, as 0 is falsey
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L637
  125. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L656
  126. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L669
  127. consider-using-assignment-expr:
    Use 'if (age_range_seconds := (self.ages[-1] - self.ages[0]).total_seconds()) > 0:' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L696
  128. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L724
  129. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L729
  130. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L756
  131. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L761
  132. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L767
  133. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L777
  134. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L785
  135. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L806
  136. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/statistics/sensor.py#L813
  137. too-many-lines:
    Too many lines in module (1028/1000)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/nut/sensor.py#L1
  138. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/nut/sensor.py#L961
  139. consider-using-assignment-expr:
    Use 'if not (runtime_data := _get_runtime_data_from_device_id(hass, device_id)):' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/nut/device_action.py#L53
  140. unused-argument:
    Unused argument 'variables'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/nut/device_action.py#L45
  141. unused-argument:
    Unused argument 'context'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/nut/device_action.py#L46
  142. magic-value-comparison:
    Consider using a named constant or an enum instead of ''entity_id''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/nut/diagnostics.py#L68
  143. too-many-locals:
    Too many local variables (18/15)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/nut/__init__.py#L52
  144. consider-using-assignment-expr:
    Use 'if (unique_id := _unique_id_from_status(status)) is None:' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/nut/__init__.py#L109
  145. consider-ternary-expression:
    Consider rewriting as a ternary expression
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/nut/__init__.py#L112
  146. consider-using-assignment-expr:
    Use 'if not (serial := _serial_from_status(status)):' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/nut/__init__.py#L188
  147. too-many-arguments:
    Too many arguments (7/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/nut/__init__.py#L220
  148. magic-value-comparison:
    Consider using a named constant or an enum instead of ''name''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/conversation/http.py#L272
  149. magic-value-comparison:
    Consider using a named constant or an enum instead of ''area''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/conversation/http.py#L275
  150. magic-value-comparison:
    Consider using a named constant or an enum instead of ''domain''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/conversation/http.py#L278
  151. magic-value-comparison:
    Consider using a named constant or an enum instead of ''device_class''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/conversation/http.py#L281
  152. magic-value-comparison:
    Consider using a named constant or an enum instead of ''state''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/conversation/http.py#L284
  153. locally-disabled:
    Locally disabling protected-access (W0212)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L561
  154. locally-disabled:
    Locally disabling import-outside-toplevel (C0415)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L643
  155. import-error:
    Unable to import 'cryptography'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L24
  156. import-error:
    Unable to import 'cryptography.hazmat.primitives'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L25
  157. import-error:
    Unable to import 'cryptography.hazmat.primitives.asymmetric'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L26
  158. import-error:
    Unable to import 'cryptography.x509.oid'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L27
  159. import-error:
    Unable to import 'voluptuous'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L28
  160. import-error:
    Unable to import 'yarl'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L29
  161. consider-using-assignment-expr:
    Use 'if (conf := config.get(DOMAIN)) is None:' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L210
  162. unused-argument:
    Unused argument 'event'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L247
  163. unused-argument:
    Unused argument 'loads'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L281
  164. too-few-public-methods:
    Too few public methods (1/2)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L278
  165. too-many-arguments:
    Too many arguments (7/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L291
  166. too-few-public-methods:
    Too few public methods (0/2)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L288
  167. too-many-instance-attributes:
    Too many instance attributes (12/7)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L312
  168. too-many-arguments:
    Too many arguments (9/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L315
  169. too-many-arguments:
    Too many arguments (7/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L351
  170. unused-argument:
    Unused argument 'request'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L447
  171. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L460
  172. consider-ternary-expression:
    Consider rewriting as a ternary expression
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L461
  173. consider-using-assignment-expr:
    Use 'if (user := await hass.auth.async_get_user(call.context.user_id)) is None:' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L620
  174. suppressed-message:
    Suppressed 'protected-access' (from line 561)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L561
  175. suppressed-message:
    Suppressed 'import-outside-toplevel' (from line 643)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/http/__init__.py#L643
  176. locally-disabled:
    Locally disabling import-outside-toplevel (C0415)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L835
  177. too-complex:
    'async_step_options' is too complex. The McCabe rating is 12
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L390
  178. too-complex:
    'async_get_broker_settings' is too complex. The McCabe rating is 25
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L537
  179. too-complex:
    'check_certicate_chain' is too complex. The McCabe rating is 13
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L865
  180. unused-argument:
    Unused argument 'user_input'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L349
  181. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L418
  182. magic-value-comparison:
    Consider using a named constant or an enum instead of ''birth_topic''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L434
  183. magic-value-comparison:
    Consider using a named constant or an enum instead of ''will_topic''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L444
  184. too-many-arguments:
    Too many arguments (6/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L537
  185. too-many-locals:
    Too many local variables (27/15)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L537
  186. too-many-locals:
    Too many local variables (16/15)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L558
  187. magic-value-comparison:
    Consider using a named constant or an enum instead of ''auto''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L569
  188. magic-value-comparison:
    Consider using a named constant or an enum instead of ''custom''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L571
  189. consider-using-assignment-expr:
    Use 'if (certificate_id := user_input.get(CONF_CERTIFICATE)):' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L594
  190. too-many-boolean-expressions:
    Too many boolean expressions in if statement (8/5)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L600
  191. magic-value-comparison:
    Consider using a named constant or an enum instead of ''custom''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L604
  192. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L647
  193. too-many-branches:
    Too many branches (14/12)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L558
  194. magic-value-comparison:
    Consider using a named constant or an enum instead of ''off''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L710
  195. magic-value-comparison:
    Consider using a named constant or an enum instead of ''auto''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L781
  196. magic-value-comparison:
    Consider using a named constant or an enum instead of ''custom''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L790
  197. too-many-statements:
    Too many statements (99/50)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L537
  198. import-error:
    Unable to import 'paho.mqtt.client'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L835
  199. unused-argument:
    Unused argument 'client_'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L842
  200. unused-argument:
    Unused argument 'userdata'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L843
  201. unused-argument:
    Unused argument 'flags'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L844
  202. unused-argument:
    Unused argument 'properties'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L846
  203. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L868
  204. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L875
  205. suppressed-message:
    Suppressed 'import-outside-toplevel' (from line 835)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/mqtt/config_flow.py#L835
  206. too-complex:
    'async_setup' is too complex. The McCabe rating is 19
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/__init__.py#L367
  207. unused-argument:
    Unused argument 'now'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/__init__.py#L319
  208. while-used:
    Used while loop
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/__init__.py#L332
  209. too-many-try-statements:
    try clause contains 8 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/__init__.py#L334
  210. magic-value-comparison:
    Consider using a named constant or an enum instead of ''action''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/__init__.py#L341
  211. magic-value-comparison:
    Consider using a named constant or an enum instead of ''start''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/__init__.py#L341
  212. too-many-locals:
    Too many local variables (21/15)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/__init__.py#L367
  213. consider-using-assignment-expr:
    Use 'if (user := await hass.auth.async_get_user(call.context.user_id)) is None:' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/__init__.py#L465
  214. line-too-long:
    Line too long (105/100)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/camera.py#L477
  215. line-too-long:
    Line too long (104/100)
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/camera.py#L479
  216. too-complex:
    'async_update' is too complex. The McCabe rating is 11
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/camera.py#L358
  217. too-many-try-statements:
    try clause contains 18 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/camera.py#L363
  218. consider-using-assignment-expr:
    Use 'if (serial_number := (await self._api.async_serial_number).strip()):' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/camera.py#L380
  219. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/camera.py#L476
  220. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/camera.py#L495
  221. consider-using-assignment-expr:
    Use 'if (new_value := await getattr(self, f'async_get{func}')()) != value:' instead
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/camera.py#L498
  222. magic-value-comparison:
    Consider using a named constant or an enum instead of ''Manual''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/camera.py#L535
  223. magic-value-comparison:
    Consider using a named constant or an enum instead of ''true''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/amcrest/camera.py#L584
  224. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/sensor.py#L66
  225. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/binary_sensor.py#L32
  226. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/binary_sensor.py#L32
  227. magic-value-comparison:
    Consider using a named constant or an enum instead of ''enabled''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/binary_sensor.py#L35
  228. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/binary_sensor.py#L41
  229. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/diagnostics.py#L17
  230. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/switch.py#L24
  231. abstract-method:
    Method 'turn_off' is abstract in class 'ToggleEntity' but is not overridden in child class 'PiHoleSwitch'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/switch.py#L54
  232. abstract-method:
    Method 'turn_on' is abstract in class 'ToggleEntity' but is not overridden in child class 'PiHoleSwitch'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/switch.py#L54
  233. magic-value-comparison:
    Consider using a named constant or an enum instead of ''enabled''.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/switch.py#L72
  234. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/switch.py#L76
  235. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/switch.py#L97
  236. import-error:
    Unable to import 'hole'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/__init__.py#L8
  237. import-error:
    Unable to import 'hole.exceptions'
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/__init__.py#L9
  238. magic-value-comparison:
    Consider using a named constant or an enum instead of '2'.
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/__init__.py#L95
  239. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/__init__.py#L116
  240. consider-ternary-expression:
    Consider rewriting as a ternary expression
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/__init__.py#L165
  241. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/update.py#L30
  242. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/update.py#L30
  243. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/update.py#L30
  244. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/update.py#L39
  245. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/update.py#L39
  246. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/update.py#L39
  247. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/update.py#L48
  248. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/update.py#L48
  249. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/673bbc13721af0024dd9c4c64ff7f2fe7ac735ff/homeassistant/components/pi_hole/update.py#L48
  250. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/673bbc13721af...

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

This comment was generated for commit 483d943

@mbyrnepr2 mbyrnepr2 marked this pull request as ready for review May 6, 2024 05:57
@Pierre-Sassoulas Pierre-Sassoulas added False Positive 🦟 A message is emitted but nothing is wrong with the code backport maintenance/3.3.x labels May 6, 2024
@Pierre-Sassoulas Pierre-Sassoulas added this to the 3.1.1 milestone May 6, 2024
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice python 3.7 cleanup !

@mbyrnepr2 mbyrnepr2 merged commit 6df4e1d into pylint-dev:main May 7, 2024
48 checks passed
github-actions bot pushed a commit that referenced this pull request May 7, 2024
* Fix a false positive with ``singledispatchmethod-function`` when a method is decorated with both ``functools.singledispatchmethod`` and ``staticmethod``.

Closes #9531

(cherry picked from commit 6df4e1d)
Pierre-Sassoulas pushed a commit that referenced this pull request May 7, 2024
…9605)

* Fix a false positive with ``singledispatchmethod-function`` when a method is decorated with both ``functools.singledispatchmethod`` and ``staticmethod``.

Closes #9531

(cherry picked from commit 6df4e1d)

Co-authored-by: Mark Byrne <[email protected]>
@mbyrnepr2 mbyrnepr2 deleted the 9531_fp_singledispatchmethod-function branch May 17, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backported False Positive 🦟 A message is emitted but nothing is wrong with the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

E1520 recommends an invalid combination of @singledispatch and @staticmethod
3 participants