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

Add detection for missing logging format arguments (#9999) #10128

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andydrewwm
Copy link

Implements the detection of too-few-args in logging format strings. Includes new test cases and documentation updates.

Type of Changes

Type
βœ“ πŸ› Bug fix
βœ“ πŸ“œ Docs

Description

  • Modified the logging-too-few-args checker in logging.py.
  • Added new test cases in logging_too_few_args_static.py.

Closes #9999

Implements the detection of too-few-args in logging format strings.
Includes new test cases and documentation updates.
@Pierre-Sassoulas
Copy link
Member

Pierre-Sassoulas commented Dec 10, 2024

Thank you for the pull request ! Did you notice there's another PR open for this issue ? (#10108)

Copy link
Contributor

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

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

  1. invalid-overridden-method:
    Method 'state_attributes' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/remote/__init__.py#L185
  2. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/plugwise/coordinator.py#L71
  3. invalid-name:
    Variable name "_P" doesn't conform to snake_case naming style
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/plugwise/util.py#L14
  4. invalid-overridden-method:
    Method 'preset_mode' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/plugwise/climate.py#L205
  5. too-complex:
    'init' is too complex. The McCabe rating is 13
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L195
  6. abstract-method:
    Method 'turn_off' is abstract in class 'ToggleEntity' but is not overridden in child class 'DeconzBaseLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L187
  7. abstract-method:
    Method 'turn_on' is abstract in class 'ToggleEntity' but is not overridden in child class 'DeconzBaseLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L187
  8. undefined-variable:
    Undefined variable '_LightDeviceT'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L188
  9. use-set-for-membership:
    Consider using set for membership test
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L239
  10. invalid-overridden-method:
    Method 'color_mode' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L243
  11. invalid-overridden-method:
    Method 'brightness' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L258
  12. invalid-overridden-method:
    Method 'hs_color' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L270
  13. invalid-overridden-method:
    Method 'xy_color' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L277
  14. invalid-overridden-method:
    Method 'is_on' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L282
  15. magic-value-comparison:
    Consider using a named constant or an enum instead of ''IKEA''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L310
  16. invalid-overridden-method:
    Method 'extra_state_attributes' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L340
  17. magic-value-comparison:
    Consider using a named constant or an enum instead of ''attr''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/deconz/light.py#L367
  18. too-complex:
    'find_hsbk' is too complex. The McCabe rating is 12
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/lifx/util.py#L84
  19. magic-value-comparison:
    Consider using a named constant or an enum instead of ''color_temp''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/lifx/util.py#L115
  20. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/lifx/util.py#L84
  21. unused-argument:
    Unused argument 'bulb'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/lifx/util.py#L204
  22. import-error:
    Unable to import 'starlink_grpc'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/coordinator.py#L11
  23. consider-using-assignment-expr:
    Use 'if (duration := end - self.data.sleep[0]) < 0:' instead
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/coordinator.py#L127
  24. invalid-overridden-method:
    Method 'native_value' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L59
  25. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L65
  26. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L65
  27. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L65
  28. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L65
  29. unexpected-keyword-arg:
    Unexpected keyword argument 'suggested_display_precision' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L65
  30. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L73
  31. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L73
  32. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L73
  33. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L73
  34. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L73
  35. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_registry_enabled_default' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L73
  36. unexpected-keyword-arg:
    Unexpected keyword argument 'suggested_display_precision' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L73
  37. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L83
  38. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L83
  39. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L83
  40. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L83
  41. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L83
  42. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_registry_enabled_default' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L83
  43. unexpected-keyword-arg:
    Unexpected keyword argument 'suggested_display_precision' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L83
  44. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L93
  45. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L93
  46. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L93
  47. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L93
  48. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L93
  49. unexpected-keyword-arg:
    Unexpected keyword argument 'suggested_display_precision' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L93
  50. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L102
  51. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L102
  52. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L102
  53. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L102
  54. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L102
  55. unexpected-keyword-arg:
    Unexpected keyword argument 'suggested_display_precision' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L102
  56. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L111
  57. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L111
  58. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L111
  59. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L111
  60. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L118
  61. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L118
  62. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L118
  63. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L118
  64. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L125
  65. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L125
  66. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L125
  67. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L125
  68. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L132
  69. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L132
  70. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L132
  71. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/starlink/sensor.py#L132
  72. import-error:
    Unable to import 'pyituran'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/coordinator.py#L5
  73. import-error:
    Unable to import 'pyituran.exceptions'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/coordinator.py#L6
  74. used-before-assignment:
    Using variable 'IturanDataUpdateCoordinator' before assignment
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/coordinator.py#L24
  75. import-error:
    Unable to import 'pyituran'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/entity.py#L5
  76. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/device_tracker.py#L15
  77. invalid-overridden-method:
    Method 'latitude' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/device_tracker.py#L42
  78. invalid-overridden-method:
    Method 'longitude' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/device_tracker.py#L47
  79. import-error:
    Unable to import 'pyituran'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/config_flow.py#L8
  80. import-error:
    Unable to import 'pyituran.exceptions'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/config_flow.py#L9
  81. import-error:
    Unable to import 'voluptuous'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/config_flow.py#L10
  82. abstract-method:
    Method 'is_matching' is abstract in class 'ConfigFlow' but is not overridden in child class 'IturanConfigFlow'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/config_flow.py#L38
  83. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/config_flow.py#L65
  84. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/config_flow.py#L57
  85. consider-using-assignment-expr:
    Use 'if not (authenticated := await ituran.is_authenticated()):' instead
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/config_flow.py#L59
  86. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/ituran/config_flow.py#L98
  87. logging-too-few-args:
    Not enough arguments for logging format string
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/homeworks/config_flow.py#L175
  88. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/yale_smart_alarm/lock.py#L69
  89. invalid-overridden-method:
    Method 'is_locked' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/yale_smart_alarm/lock.py#L98
  90. invalid-overridden-method:
    Method 'is_open' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/yale_smart_alarm/lock.py#L103
  91. too-many-try-statements:
    try clause contains 7 statements, expected at most 1
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/teslemetry/coordinator.py#L63
  92. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/switchbot/light.py#L31
  93. abstract-method:
    Method 'turn_off' is abstract in class 'ToggleEntity' but is not overridden in child class 'SwitchbotLightEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/switchbot/light.py#L39
  94. abstract-method:
    Method 'turn_on' is abstract in class 'ToggleEntity' but is not overridden in child class 'SwitchbotLightEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/switchbot/light.py#L39
  95. too-many-instance-attributes:
    Too many instance attributes (8/7)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/switchbot/light.py#L39
  96. redefined-variable-type:
    Redefinition of self._attr_color_mode type from homeassistant.components.light.const.ColorMode.COLOR_TEMP to homeassistant.components.light.const.ColorMode.RGB
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/switchbot/light.py#L67
  97. unsupported-membership-test:
    Value 'self.supported_color_modes' doesn't support membership test
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/switchbot/light.py#L75
  98. too-many-lines:
    Too many lines in module (1368/1000)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1
  99. comparison-with-callable:
    Comparing against a callable, did you omit the parenthesis?
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1021
  100. comparison-with-callable:
    Comparing against a callable, did you omit the parenthesis?
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1039
  101. comparison-with-callable:
    Comparing against a callable, did you omit the parenthesis?
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1052
  102. invalid-overridden-method:
    Method 'entity_picture' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1058
  103. comparison-with-callable:
    Comparing against a callable, did you omit the parenthesis?
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1060
  104. using-constant-test:
    Using a conditional statement with a constant value
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1063
  105. invalid-overridden-method:
    Method 'capability_attributes' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1080
  106. invalid-overridden-method:
    Method 'state_attributes' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1099
  107. comparison-with-callable:
    Comparing against a callable, did you omit the parenthesis?
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1106
  108. using-constant-test:
    Using a conditional statement with a constant value
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1113
  109. while-used:
    Used while loop
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1170
  110. too-many-public-methods:
    Too many public methods (96/20)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L513
  111. consider-using-assignment-expr:
    Use 'if (player := hass.data[DATA_COMPONENT].get_entity(msg['entity_id'])) is None:' instead
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/media_player/__init__.py#L1285
  112. abstract-method:
    Method 'turn_off' is abstract in class 'ToggleEntity' but is not overridden in child class 'SmartThingsLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/smartthings/light.py#L73
  113. abstract-method:
    Method 'turn_on' is abstract in class 'ToggleEntity' but is not overridden in child class 'SmartThingsLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/smartthings/light.py#L73
  114. use-implicit-booleaness-not-comparison-to-zero:
    "level == 0" can be simplified to "not level", if it is strictly an int, as 0 is falsey
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/smartthings/light.py#L191
  115. invalid-overridden-method:
    Method 'color_mode' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/smartthings/light.py#L197
  116. invalid-overridden-method:
    Method 'is_on' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/smartthings/light.py#L209
  117. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/baf/light.py#L23
  118. abstract-method:
    Method 'turn_off' is abstract in class 'ToggleEntity' but is not overridden in child class 'BAFLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/baf/light.py#L34
  119. abstract-method:
    Method 'turn_on' is abstract in class 'ToggleEntity' but is not overridden in child class 'BAFLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/baf/light.py#L34
  120. abstract-method:
    Method 'turn_off' is abstract in class 'ToggleEntity' but is not overridden in child class 'BAFFanLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/baf/light.py#L60
  121. abstract-method:
    Method 'turn_on' is abstract in class 'ToggleEntity' but is not overridden in child class 'BAFFanLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/baf/light.py#L60
  122. abstract-method:
    Method 'turn_off' is abstract in class 'ToggleEntity' but is not overridden in child class 'BAFStandaloneLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/baf/light.py#L67
  123. abstract-method:
    Method 'turn_on' is abstract in class 'ToggleEntity' but is not overridden in child class 'BAFStandaloneLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/baf/light.py#L67
  124. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/cert_expiry/sensor.py#L19
  125. invalid-overridden-method:
    Method 'native_value' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/cert_expiry/sensor.py#L51
  126. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/diagnostics.py#L24
  127. used-before-assignment:
    Using variable 'WhirlpoolData' before assignment
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/__init__.py#L23
  128. abstract-method:
    Method 'set_fan_mode' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  129. abstract-method:
    Method 'set_humidity' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  130. abstract-method:
    Method 'set_hvac_mode' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  131. abstract-method:
    Method 'set_preset_mode' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  132. abstract-method:
    Method 'set_swing_horizontal_mode' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  133. abstract-method:
    Method 'set_swing_mode' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  134. abstract-method:
    Method 'set_temperature' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  135. abstract-method:
    Method 'toggle' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  136. abstract-method:
    Method 'turn_aux_heat_off' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  137. abstract-method:
    Method 'turn_aux_heat_on' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  138. abstract-method:
    Method 'turn_off' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  139. abstract-method:
    Method 'turn_on' is abstract in class 'ClimateEntity' but is not overridden in child class 'AirConEntity'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L92
  140. too-many-arguments:
    Too many arguments (7/5)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L113
  141. too-many-positional-arguments:
    Too many positional arguments (7/5)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L113
  142. invalid-overridden-method:
    Method 'available' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L145
  143. invalid-overridden-method:
    Method 'current_temperature' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L150
  144. invalid-overridden-method:
    Method 'target_temperature' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L155
  145. invalid-overridden-method:
    Method 'current_humidity' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L164
  146. invalid-overridden-method:
    Method 'target_humidity' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L169
  147. invalid-overridden-method:
    Method 'hvac_mode' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L178
  148. invalid-overridden-method:
    Method 'fan_mode' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L200
  149. invalid-overridden-method:
    Method 'swing_mode' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/climate.py#L212
  150. magic-value-comparison:
    Consider using a named constant or an enum instead of ''1''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L79
  151. consider-using-assignment-expr:
    Use 'if (machine_state := washer.get_machine_state()) == MachineState.RunningMainCycle:' instead
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L84
  152. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L100
  153. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L100
  154. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L100
  155. unexpected-keyword-arg:
    Unexpected keyword argument 'options' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L100
  156. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L111
  157. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L111
  158. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_registry_enabled_default' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L111
  159. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L111
  160. unexpected-keyword-arg:
    Unexpected keyword argument 'options' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L111
  161. magic-value-comparison:
    Consider using a named constant or an enum instead of ''dryer''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L190
  162. invalid-overridden-method:
    Method 'available' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L212
  163. invalid-overridden-method:
    Method 'native_value' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L217
  164. magic-value-comparison:
    Consider using a named constant or an enum instead of ''dryer''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L238
  165. invalid-overridden-method:
    Method 'available' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/whirlpool/sensor.py#L265
  166. magic-value-comparison:
    Consider using a named constant or an enum instead of '' - ''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/music_assistant/media_player.py#L606
  167. too-many-statements:
    Too many statements (57/50)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/music_assistant/media_player.py#L544
  168. no-self-use:
    Method could be a function
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/music_assistant/media_player.py#L634
  169. unused-argument:
    Unused argument 'call'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/sabnzbd/__init__.py#L96
  170. unused-argument:
    Unused argument 'call'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/sabnzbd/__init__.py#L111
  171. unused-argument:
    Unused argument 'config'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/sabnzbd/__init__.py#L69
  172. consider-using-assignment-expr:
    Use 'if not (sab_api := await get_client(hass, entry.data)):' instead
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/sabnzbd/__init__.py#L154
  173. magic-value-comparison:
    Consider using a named constant or an enum instead of ''SMO 20''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/myuplink/helpers.py#L115
  174. import-error:
    Unable to import 'aiohttp'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/myuplink/__init__.py#L8
  175. import-error:
    Unable to import 'jwt'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/myuplink/__init__.py#L9
  176. import-error:
    Unable to import 'myuplink'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/myuplink/__init__.py#L10
  177. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/myuplink/__init__.py#L108
  178. import-error:
    Unable to import 'jwt'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/myuplink/config_flow.py#L7
  179. abstract-method:
    Method 'is_matching' is abstract in class 'ConfigFlow' but is not overridden in child class 'OAuth2FlowHandler'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/myuplink/config_flow.py#L15
  180. unused-argument:
    Unused argument 'entry_data'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/myuplink/config_flow.py#L35
  181. too-complex:
    '_update_from_device' is too complex. The McCabe rating is 17
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/matter/light.py#L326
  182. unused-argument:
    Unused argument 'config_entry'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/matter/light.py#L77
  183. abstract-method:
    Method 'turn_off' is abstract in class 'ToggleEntity' but is not overridden in child class 'MatterLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/matter/light.py#L85
  184. abstract-method:
    Method 'turn_on' is abstract in class 'ToggleEntity' but is not overridden in child class 'MatterLight'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/matter/light.py#L85
  185. too-many-instance-attributes:
    Too many instance attributes (14/7)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/matter/light.py#L85
  186. unsupported-membership-test:
    Value 'self.supported_color_modes' doesn't support membership test
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/matter/light.py#L301
  187. unsupported-membership-test:
    Value 'self.supported_color_modes' doesn't support membership test
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/matter/light.py#L303
  188. unsupported-membership-test:
    Value 'self.supported_color_modes' doesn't support membership test
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/matter/light.py#L307
  189. 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/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/matter/light.py#L431
  190. too-many-branches:
    Too many branches (17/12)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/matter/light.py#L326
  191. line-too-long:
    Line too long (116/100)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L563
  192. line-too-long:
    Line too long (139/100)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L1159
  193. too-many-lines:
    Too many lines in module (1246/1000)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L1
  194. invalid-overridden-method:
    Method 'available' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L584
  195. no-self-use:
    Method could be a function
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L613
  196. invalid-overridden-method:
    Method 'state' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L727
  197. using-constant-test:
    Using a conditional statement with a constant value
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L729
  198. using-constant-test:
    Using a conditional statement with a constant value
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L731
  199. invalid-overridden-method:
    Method 'state_attributes' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L774
  200. no-self-use:
    Method could be a function
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L847
  201. too-many-public-methods:
    Too many public methods (38/20)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L449
  202. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L1005
  203. consider-using-assignment-expr:
    Use 'if (interval := float(interval_str)) < MIN_STREAM_INTERVAL:' instead
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L1008
  204. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L1048
  205. consider-using-assignment-expr:
    Use 'if not (stream := await camera.async_create_stream()):' instead
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L1210
  206. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L1207
  207. consider-using-assignment-expr:
    Use 'if not (stream := await camera.async_create_stream()):' instead
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/camera/__init__.py#L1226
  208. import-error:
    Unable to import 'demetriek'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/lametric/notify.py#L7
  209. unused-argument:
    Unused argument 'config'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/lametric/notify.py#L33
  210. abstract-method:
    Method 'send_message' is abstract in class 'BaseNotificationService' but is not overridden in child class 'LaMetricNotificationService'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/lametric/notify.py#L45
  211. magic-value-comparison:
    Consider using a named constant or an enum instead of ''temp''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L208
  212. magic-value-comparison:
    Consider using a named constant or an enum instead of ''rgb''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L211
  213. magic-value-comparison:
    Consider using a named constant or an enum instead of ''lum''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L214
  214. magic-value-comparison:
    Consider using a named constant or an enum instead of ''lum''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L225
  215. consider-using-augmented-assign:
    Use '|=' to do an augmented assign directly
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L226
  216. magic-value-comparison:
    Consider using a named constant or an enum instead of ''temp''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L228
  217. magic-value-comparison:
    Consider using a named constant or an enum instead of ''rgb''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L231
  218. magic-value-comparison:
    Consider using a named constant or an enum instead of ''rgb''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L241
  219. invalid-overridden-method:
    Method 'name' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L247
  220. invalid-overridden-method:
    Method 'hs_color' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L252
  221. invalid-overridden-method:
    Method 'brightness' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L257
  222. invalid-overridden-method:
    Method 'is_on' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L262
  223. invalid-overridden-method:
    Method 'effect_list' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L267
  224. invalid-overridden-method:
    Method 'unique_id' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L272
  225. invalid-overridden-method:
    Method 'extra_state_attributes' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L277
  226. invalid-overridden-method:
    Method 'available' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L282
  227. consider-using-assignment-expr:
    Use 'if (changed := self.update_func()) > self._changed:' instead
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L378
  228. magic-value-comparison:
    Consider using a named constant or an enum instead of ''SENSOR''.
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/osramlightify/light.py#L399
  229. unused-argument:
    Unused argument 'hass'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/binary_sensor.py#L30
  230. invalid-overridden-method:
    Method 'is_on' was expected to be 'method', found it instead as 'property'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/binary_sensor.py#L52
  231. too-few-public-methods:
    Too few public methods (1/2)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/coordinator.py#L75
  232. too-few-public-methods:
    Too few public methods (0/2)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/coordinator.py#L107
  233. too-few-public-methods:
    Too few public methods (0/2)
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/coordinator.py#L138
  234. invalid-name:
    Type alias name "IronOSConfigEntry" doesn't conform to predefined naming style
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/__init__.py#L40
  235. unused-argument:
    Unused argument 'config'
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/__init__.py#L47
  236. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L65
  237. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L65
  238. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L65
  239. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L65
  240. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L65
  241. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L73
  242. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L73
  243. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L73
  244. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L73
  245. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L73
  246. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L73
  247. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L82
  248. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L82
  249. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L82
  250. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L82
  251. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L82
  252. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L90
  253. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L90
  254. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L90
  255. unexpected-keyword-arg:
    Unexpected keyword argument 'suggested_display_precision' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L90
  256. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L90
  257. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L90
  258. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L90
  259. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L100
  260. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L100
  261. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L100
  262. unexpected-keyword-arg:
    Unexpected keyword argument 'options' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L100
  263. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L100
  264. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L110
  265. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L110
  266. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L110
  267. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L110
  268. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L110
  269. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L118
  270. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L118
  271. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L118
  272. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L118
  273. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L118
  274. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L118
  275. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L127
  276. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L127
  277. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L127
  278. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L127
  279. unexpected-keyword-arg:
    Unexpected keyword argument 'state_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L127
  280. unexpected-keyword-arg:
    Unexpected keyword argument 'entity_category' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L127
  281. unexpected-keyword-arg:
    Unexpected keyword argument 'key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L136
  282. unexpected-keyword-arg:
    Unexpected keyword argument 'translation_key' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L136
  283. unexpected-keyword-arg:
    Unexpected keyword argument 'native_unit_of_measurement' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L136
  284. unexpected-keyword-arg:
    Unexpected keyword argument 'device_class' in constructor call
    https://github.com/home-assistant/core/blob/5062a7fec8ec952387f10ba07e89a1045ee117c0/homeassistant/components/iron_os/sensor.py#L136
    285)...

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

This comment was generated for commit 76394d0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect missing arguments in logging format strings
2 participants