pylint
pylint copied to clipboard
[contextmanager-generator-missing-cleanup][new feature] Warn about @contextlib.contextmanager without try/finally in generator functions
- add: initial layout for new error
- add: test cases for new checker
- add: first pass at new checker
Type of Changes
| Type | |
|---|---|
| β | :sparkles: New feature |
Description
Add a checker for contextlib.contextmanager decorated generator functions that don't have cleanup handling for GeneratorExit.
Closes #2832
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function restore_path https://github.com/pylint-dev/astroid/blob/46ed374bd5f1e4214b8f3b4f3e6ab444a14ce3de/astroid/context.py#L138
Effect on home-assistant: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function async_start_setup https://github.com/home-assistant/core/blob/8a033ee5544f5ed30b67a395525348f76101432d/homeassistant/setup.py#L502
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function wrap_zigpy_exceptions https://github.com/home-assistant/core/blob/8a033ee5544f5ed30b67a395525348f76101432d/homeassistant/components/zha/core/cluster_handlers/init.py#L61
Effect on poetry-core: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function with_python_versions https://github.com/python-poetry/poetry-core/blob/010688e2c7d9bf90d77945386ab168c441b1d3fb/src/poetry/core/packages/package.py#L582
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function temporary_directory https://github.com/python-poetry/poetry-core/blob/010688e2c7d9bf90d77945386ab168c441b1d3fb/src/poetry/core/utils/helpers.py#L44
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function _write_to_zip https://github.com/python-poetry/poetry-core/blob/010688e2c7d9bf90d77945386ab168c441b1d3fb/src/poetry/core/masonry/builders/wheel.py#L457
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function setup_py https://github.com/python-poetry/poetry-core/blob/010688e2c7d9bf90d77945386ab168c441b1d3fb/src/poetry/core/masonry/builders/sdist.py#L223
Effect on black: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function nullcontext https://github.com/psf/black/blob/36078bc83f24dcd5f74e021a105429595a3fd63c/src/black/init.py#L1399
Effect on pytest: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function disabled https://github.com/pytest-dev/pytest/blob/54623f0f33c367e19c4041d30f11f71787e30719/src/_pytest/capture.py#L967
Effect on django: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function mark_for_rollback_on_error https://github.com/django/django/blob/e47298aec4fa04416e7082331fbd44bd9f2662aa/django/db/transaction.py#L101
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function temporary_connection https://github.com/django/django/blob/e47298aec4fa04416e7082331fbd44bd9f2662aa/django/db/backends/base/base.py#L681
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function _nodb_cursor https://github.com/django/django/blob/e47298aec4fa04416e7082331fbd44bd9f2662aa/django/db/backends/base/base.py#L698
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function _nodb_cursor https://github.com/django/django/blob/e47298aec4fa04416e7082331fbd44bd9f2662aa/django/db/backends/postgresql/base.py#L397
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function wrap_oracle_errors https://github.com/django/django/blob/e47298aec4fa04416e7082331fbd44bd9f2662aa/django/db/backends/oracle/base.py#L66
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function timed https://github.com/django/django/blob/e47298aec4fa04416e7082331fbd44bd9f2662aa/django/test/utils.py#L952
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function _assert_raises_or_warns_cm https://github.com/django/django/blob/e47298aec4fa04416e7082331fbd44bd9f2662aa/django/test/testcases.py#L739
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function wait_page_loaded https://github.com/django/django/blob/e47298aec4fa04416e7082331fbd44bd9f2662aa/django/contrib/admin/tests.py#L119
Effect on pandas: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function ensure_clean_store https://github.com/pandas-dev/pandas/blob/a76b3f4c73a351a11d2cae6236773192e630d4f5/pandas/tests/io/pytables/common.py#L27
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function set_locale https://github.com/pandas-dev/pandas/blob/a76b3f4c73a351a11d2cae6236773192e630d4f5/pandas/_config/localization.py#L22
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function rewrite_exception https://github.com/pandas-dev/pandas/blob/a76b3f4c73a351a11d2cae6236773192e630d4f5/pandas/util/_exceptions.py#L15
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function rewrite_warning https://github.com/pandas-dev/pandas/blob/a76b3f4c73a351a11d2cae6236773192e630d4f5/pandas/util/_exceptions.py#L58
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function decompress_file https://github.com/pandas-dev/pandas/blob/a76b3f4c73a351a11d2cae6236773192e630d4f5/pandas/_testing/contexts.py#L32
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function run_transaction https://github.com/pandas-dev/pandas/blob/a76b3f4c73a351a11d2cae6236773192e630d4f5/pandas/io/sql.py#L1588
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function _mpl https://github.com/pandas-dev/pandas/blob/a76b3f4c73a351a11d2cae6236773192e630d4f5/pandas/io/formats/style.py#L94
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function _get_buffer https://github.com/pandas-dev/pandas/blob/a76b3f4c73a351a11d2cae6236773192e630d4f5/pandas/io/formats/format.py#L1113
Effect on sentry: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function _sampled_eventstream_timer https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/eventstream/kafka/dispatch.py#L26
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function test_config https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/silo.py#L92
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function assume_test_silo_mode https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/silo.py#L252
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function enforce_no_cross_transaction_interactions https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/hybrid_cloud.py#L130
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function collect_transaction_queries https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/hybrid_cloud.py#L171
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function auto_select_silo_mode_on_redirects https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/cases.py#L454
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function api_gateway_proxy_stubbed https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/cases.py#L755
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function disable_snuba_query_cache https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/cases.py#L1161
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function override_regions https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/region.py#L10
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function fix_monolith_region_pointer https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/region.py#L20
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function override_region_config https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/region.py#L46
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function outbox_runner https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/outbox.py#L28
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function org_creation_context https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/factories.py#L278
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function BurstTaskRunner https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/helpers/task_runner.py#L23
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function override_options https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/helpers/options.py#L12
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function Feature https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/helpers/features.py#L24
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function AuthProvider https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/testutils/helpers/auth_providers.py#L9
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function prepare_outboxes https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/db/models/outboxes.py#L54
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function _maybe_prepare_outboxes https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/db/models/outboxes.py#L242
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function django_test_transaction_water_mark https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/db/postgres/transactions.py#L15
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function in_test_hide_transaction_boundary https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/db/postgres/transactions.py#L67
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function enforce_constraints https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/db/postgres/transactions.py#L106
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function handle_query_errors https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/api/bases/organization_events.py#L202
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function handle_query_errors https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/api/endpoints/organization_sessions.py#L98
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function handle_query_errors https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/api/endpoints/organization_stats_v2.py#L215
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function handle_query_errors https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/api/endpoints/organization_stats_summary.py#L254
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function unguarded_write https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/silo/safety.py#L24
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function __set_finished_time_on_success https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/utils/concurrent.py#L97
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function catchable_atomic https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/runner/commands/repair.py#L18
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function get_docker_client https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/runner/commands/devservices.py#L40
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function _measured https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/mediators/mediator.py#L251
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function writable_data https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/models/releasefile.py#L297
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function process_shard https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/models/outbox.py#L528
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function process_coalesced https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/models/outbox.py#L551
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function lock_blob https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/models/files/utils.py#L52
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function locked_blob https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/models/files/utils.py#L63
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function _maybe_prepare_outboxes https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/models/avatars/user_avatar.py#L62
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function measure https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/services/hybrid_cloud/rpcmetrics.py#L24
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function wrap_sdk_span https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/services/hybrid_cloud/rpcmetrics.py#L102
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function _open_request_context https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/services/hybrid_cloud/rpc.py#L625
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function applied_to_request https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/services/hybrid_cloud/auth/model.py#L259
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function get https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/consumers/synchronized.py#L53
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function digest https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/digests/backends/redis.py#L188
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function digest https://github.com/getsentry/sentry/blob/13b87b1f5d7ff1db8dc07a8884c887e8c0ddb356/src/sentry/digests/backends/dummy.py#L26
Effect on flask: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function session_transaction https://github.com/pallets/flask/blob/14232513fd618be02e0ab4b223f3105fcdde3cfe/src/flask/testing.py#L135
Effect on psycopg: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function copy https://github.com/psycopg/psycopg/blob/2b488bf728977276ffd74dd40bb0d6132f9d10c6/psycopg/psycopg/cursor.py#L867
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function transaction https://github.com/psycopg/psycopg/blob/2b488bf728977276ffd74dd40bb0d6132f9d10c6/psycopg/psycopg/connection.py#L905
- contextmanager-generator-missing-cleanup: Unhandled generator cleanup in contextmanager function pipeline https://github.com/psycopg/psycopg/blob/2b488bf728977276ffd74dd40bb0d6132f9d10c6/psycopg/psycopg/connection.py#L943
This comment was generated for commit 72068a2117be435e45637b26bcda58bae517c87a
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: The code after line 141 will never be executed ('GeneratorExit' needs to be handled) https://github.com/pylint-dev/astroid/blob/46ed374bd5f1e4214b8f3b4f3e6ab444a14ce3de/astroid/context.py#L138
Effect on home-assistant: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: The code after line 524 will never be executed ('GeneratorExit' needs to be handled) https://github.com/home-assistant/core/blob/5c52a15df7b057e00630dc04ce170410099cfdca/homeassistant/setup.py#L502
- contextmanager-generator-missing-cleanup: The code after line 75 will never be executed ('GeneratorExit' needs to be handled) https://github.com/home-assistant/core/blob/5c52a15df7b057e00630dc04ce170410099cfdca/homeassistant/components/zha/core/cluster_handlers/init.py#L61
Effect on poetry-core: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: The code after line 589 will never be executed ('GeneratorExit' needs to be handled) https://github.com/python-poetry/poetry-core/blob/010688e2c7d9bf90d77945386ab168c441b1d3fb/src/poetry/core/packages/package.py#L582
- contextmanager-generator-missing-cleanup: The code after line 474 will never be executed ('GeneratorExit' needs to be handled) https://github.com/python-poetry/poetry-core/blob/010688e2c7d9bf90d77945386ab168c441b1d3fb/src/poetry/core/masonry/builders/wheel.py#L457
- contextmanager-generator-missing-cleanup: The code after line 236 will never be executed ('GeneratorExit' needs to be handled) https://github.com/python-poetry/poetry-core/blob/010688e2c7d9bf90d77945386ab168c441b1d3fb/src/poetry/core/masonry/builders/sdist.py#L223
Effect on pytest: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: The code after line 499 will never be executed ('GeneratorExit' needs to be handled) https://github.com/pytest-dev/pytest/blob/3ab70cd561cb0b7e5188b22ecf54a0e2d7a67bcb/src/_pytest/doctest.py#L473
Effect on django: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: The code after line 126 will never be executed ('GeneratorExit' needs to be handled) https://github.com/django/django/blob/8adc7c86ab85ed91e512bc49056e301cbe1715d0/django/db/transaction.py#L101
- contextmanager-generator-missing-cleanup: The code after line 163 will never be executed ('GeneratorExit' needs to be handled) https://github.com/django/django/blob/8adc7c86ab85ed91e512bc49056e301cbe1715d0/django/db/backends/utils.py#L129
- contextmanager-generator-missing-cleanup: The code after line 432 will never be executed ('GeneratorExit' needs to be handled) https://github.com/django/django/blob/8adc7c86ab85ed91e512bc49056e301cbe1715d0/django/db/backends/postgresql/base.py#L397
- contextmanager-generator-missing-cleanup: The code after line 88 will never be executed ('GeneratorExit' needs to be handled) https://github.com/django/django/blob/8adc7c86ab85ed91e512bc49056e301cbe1715d0/django/db/backends/oracle/base.py#L66
- contextmanager-generator-missing-cleanup: The code after line 744 will never be executed ('GeneratorExit' needs to be handled) https://github.com/django/django/blob/8adc7c86ab85ed91e512bc49056e301cbe1715d0/django/test/testcases.py#L739
- contextmanager-generator-missing-cleanup: The code after line 1376 will never be executed ('GeneratorExit' needs to be handled) https://github.com/django/django/blob/8adc7c86ab85ed91e512bc49056e301cbe1715d0/django/test/testcases.py#L1347
- contextmanager-generator-missing-cleanup: The code after line 130 will never be executed ('GeneratorExit' needs to be handled) https://github.com/django/django/blob/8adc7c86ab85ed91e512bc49056e301cbe1715d0/django/contrib/admin/tests.py#L119
- contextmanager-generator-missing-cleanup: The code after line 270 will never be executed ('GeneratorExit' needs to be handled) https://github.com/django/django/blob/8adc7c86ab85ed91e512bc49056e301cbe1715d0/django/template/context.py#L245
Effect on pandas: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: The code after line 38 will never be executed ('GeneratorExit' needs to be handled) https://github.com/pandas-dev/pandas/blob/c9a98f0f0fe3a1ff2ce549b2f2c7551cc9afc58a/pandas/tests/test_register_accessor.py#L27
- contextmanager-generator-missing-cleanup: The code after line 30 will never be executed ('GeneratorExit' needs to be handled) https://github.com/pandas-dev/pandas/blob/c9a98f0f0fe3a1ff2ce549b2f2c7551cc9afc58a/pandas/util/_exceptions.py#L15
- contextmanager-generator-missing-cleanup: The code after line 97 will never be executed ('GeneratorExit' needs to be handled) https://github.com/pandas-dev/pandas/blob/c9a98f0f0fe3a1ff2ce549b2f2c7551cc9afc58a/pandas/util/_exceptions.py#L58
- contextmanager-generator-missing-cleanup: The code after line 93 will never be executed ('GeneratorExit' needs to be handled) https://github.com/pandas-dev/pandas/blob/c9a98f0f0fe3a1ff2ce549b2f2c7551cc9afc58a/pandas/_testing/contexts.py#L55
Effect on sentry: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: The code after line 1158 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/testutils/cases.py#L1155
- contextmanager-generator-missing-cleanup: The code after line 59 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/testutils/outbox.py#L28
- contextmanager-generator-missing-cleanup: The code after line 44 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/testutils/helpers/options.py#L12
- contextmanager-generator-missing-cleanup: The code after line 126 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/testutils/helpers/features.py#L24
- contextmanager-generator-missing-cleanup: The code after line 12 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/testutils/helpers/auth_providers.py#L9
- contextmanager-generator-missing-cleanup: The code after line 264 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/api/bases/organization_events.py#L205
- contextmanager-generator-missing-cleanup: The code after line 104 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/api/endpoints/organization_sessions.py#L98
- contextmanager-generator-missing-cleanup: The code after line 221 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/api/endpoints/organization_stats_v2.py#L215
- contextmanager-generator-missing-cleanup: The code after line 260 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/api/endpoints/organization_stats_summary.py#L254
- contextmanager-generator-missing-cleanup: The code after line 360 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/utils/snuba.py#L336
- contextmanager-generator-missing-cleanup: The code after line 104 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/utils/concurrent.py#L97
- contextmanager-generator-missing-cleanup: The code after line 23 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/runner/commands/repair.py#L18
- contextmanager-generator-missing-cleanup: The code after line 81 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/runner/commands/devservices.py#L41
- contextmanager-generator-missing-cleanup: The code after line 261 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/mediators/mediator.py#L251
- contextmanager-generator-missing-cleanup: The code after line 347 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/models/releasefile.py#L297
- contextmanager-generator-missing-cleanup: The code after line 548 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/models/outbox.py#L528
- contextmanager-generator-missing-cleanup: The code after line 587 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/models/outbox.py#L551
- contextmanager-generator-missing-cleanup: The code after line 74 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/models/files/utils.py#L63
- contextmanager-generator-missing-cleanup: The code after line 30 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/services/hybrid_cloud/rpcmetrics.py#L24
- contextmanager-generator-missing-cleanup: The code after line 247 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/d36da19cf57433408068d100cab5b1e56ff6b8de/src/sentry/digests/backends/redis.py#L188
Effect on flask: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: The code after line 182 will never be executed ('GeneratorExit' needs to be handled) https://github.com/pallets/flask/blob/541bc8dfc2263cfa1ab2f209ce6132e1835cac9b/src/flask/testing.py#L135
Effect on psycopg: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: The code after line 890 will never be executed ('GeneratorExit' needs to be handled) https://github.com/psycopg/psycopg/blob/b1c3c19330dced6b32e595e3d3aed60e160541da/psycopg/psycopg/cursor.py#L867
This comment was generated for commit 74841ab39b3d8cca94b11f69ecf512720ca5d8f5
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.83%. Comparing base (
e31a155) to head (3bd7132). Report is 181 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #9133 +/- ##
==========================================
+ Coverage 95.76% 95.83% +0.07%
==========================================
Files 173 174 +1
Lines 18665 18887 +222
==========================================
+ Hits 17874 18101 +227
+ Misses 791 786 -5
| Files | Coverage Ξ | |
|---|---|---|
| pylint/checkers/base/__init__.py | 100.00% <100.00%> (ΓΈ) |
|
| pylint/checkers/base/function_checker.py | 100.00% <100.00%> (ΓΈ) |
π€ Effect of this PR on checked open source code: π€
Effect on sentry: The following messages are now emitted:
- contextmanager-generator-missing-cleanup: The code after line 48 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/4135a006ef3f880dab3201d773257b4554778de9/src/sentry/testutils/pytest/relay.py#L49
- contextmanager-generator-missing-cleanup: The code after line 48 will never be executed ('GeneratorExit' needs to be handled) https://github.com/getsentry/sentry/blob/4135a006ef3f880dab3201d773257b4554778de9/src/sentry/testutils/pytest/relay.py#L49
This comment was generated for commit eb404793292c70822a51a0b0d0fd8d7b602fe22d
Ahh I didn't know about 'safe_infer'. That would be helpful because I can find the FunctionDef of the used item in the With.
Note for later 'safe_infer(with_node.items[0][0])'
That should allow me to remove the odd state objects in the init.
As for the warnings being on using generator was due to new background from the issue #2832. Using certain context-managers in a generator will cause context leaks which should be warned on the using function rather than the context-manager.
π€ According to the primer, this change has no effect on the checked open source code. π€π
This comment was generated for commit 5c50505749f9d21a993b938a6eca7da13e11aa26
π€ According to the primer, this change has no effect on the checked open source code. π€π
This comment was generated for commit 8730bc7cac514f1c662b360190b838b4365aac4e
Does this need reviews or do you need to polish some things still @rhyn0 ? I would be glad to have this in 3.2.0 π
From what I can tell it's very close:
- some unresolved documentation comments
- docs check is failing
- TODO statements about yield and asyncwith
Happy to give the whole thing a once-over when those are in π
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- 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
- suppressed-message: Suppressed 'import-outside-toplevel' (from line 442) https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/manager.py#L448
- line-too-long: Line too long (108/100) https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L257
- 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
- missing-class-docstring: Missing class docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L31
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L32
- too-few-public-methods: Too few public methods (1/2) https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L31
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L324
- 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
- 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
- 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
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L337
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L343
- 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
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L371
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L448
- while-used:
Used
whileloop https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L458
The following messages are no longer emitted:
- 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
- line-too-long: Line too long (108/100) https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L256
- 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
- missing-class-docstring: Missing class docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L30
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L31
- too-few-public-methods: Too few public methods (1/2) https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L30
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L323
- 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
- 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
- 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
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L336
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L342
- 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
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L370
- 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
- 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
- while-used:
Used
whileloop https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L452
Effect on home-assistant: The following messages are now emitted:
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/diagnostics.py#L17
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L28
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- too-many-try-statements: try clause contains 3 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L193
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/init.py#L50
- unused-argument: Unused argument 'event' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/init.py#L75
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L30
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L39
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L39
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L39
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L39
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L39
- consider-using-assignment-expr: Use 'if (activity := kwargs.get(ATTR_ACTIVITY, '')):' instead https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L68
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L54
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L54
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'suggested_display_precision' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'entity_registry_enabled_default' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'suggested_display_precision' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L86
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L86
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L86
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L92
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L92
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L92
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L98
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L98
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L103
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L103
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L103
- unexpected-keyword-arg: Unexpected keyword argument 'suggested_display_precision' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L103
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L110
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L110
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L110
- unexpected-keyword-arg: Unexpected keyword argument 'options' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L110
- prefer-typing-namedtuple: Prefer 'typing.NamedTuple' over 'collections.namedtuple' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L119
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L162
- too-complex: 'async_setup_entry' is too complex. The McCabe rating is 14 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L113
- import-error: Unable to import 'aiohttp' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L6
- import-error: Unable to import 'habitipy.aio' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L7
- import-error: Unable to import 'voluptuous' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L8
- too-few-public-methods: Too few public methods (1/2) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L116
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L134
- import-error: Unable to import 'aiohttp' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/coordinator.py#L10
- import-error: Unable to import 'habitipy.aio' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/coordinator.py#L11
- too-many-try-statements: try clause contains 4 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/coordinator.py#L48
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bring/init.py#L39
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bring/todo.py#L36
- too-many-lines: Too many lines in module (1028/1000) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/sensor.py#L1
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/sensor.py#L961
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/device_action.py#L53
- unused-argument: Unused argument 'variables' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/device_action.py#L45
- unused-argument: Unused argument 'context' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/device_action.py#L46
- magic-value-comparison: Consider using a named constant or an enum instead of ''entity_id''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/diagnostics.py#L68
- too-many-locals: Too many local variables (18/15) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/init.py#L52
- consider-using-assignment-expr: Use 'if (unique_id := _unique_id_from_status(status)) is None:' instead https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/init.py#L109
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/init.py#L112
- consider-using-assignment-expr: Use 'if not (serial := _serial_from_status(status)):' instead https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/init.py#L188
- too-many-arguments: Too many arguments (7/5) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/init.py#L220
- magic-value-comparison: Consider using a named constant or an enum instead of ''name''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/conversation/http.py#L272
- magic-value-comparison: Consider using a named constant or an enum instead of ''area''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/conversation/http.py#L275
- magic-value-comparison: Consider using a named constant or an enum instead of ''domain''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/conversation/http.py#L278
- magic-value-comparison: Consider using a named constant or an enum instead of ''device_class''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/conversation/http.py#L281
- magic-value-comparison: Consider using a named constant or an enum instead of ''state''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/conversation/http.py#L284
- locally-disabled: Locally disabling import-outside-toplevel (C0415) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L835
- too-complex: 'async_step_options' is too complex. The McCabe rating is 12 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L390
- too-complex: 'async_get_broker_settings' is too complex. The McCabe rating is 25 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L537
- too-complex: 'check_certicate_chain' is too complex. The McCabe rating is 13 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L865
- unused-argument: Unused argument 'user_input' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L349
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L418
- magic-value-comparison: Consider using a named constant or an enum instead of ''birth_topic''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L434
- magic-value-comparison: Consider using a named constant or an enum instead of ''will_topic''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L444
- too-many-arguments: Too many arguments (6/5) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L537
- too-many-locals: Too many local variables (27/15) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L537
- too-many-locals: Too many local variables (16/15) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L558
- magic-value-comparison: Consider using a named constant or an enum instead of ''auto''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L569
- magic-value-comparison: Consider using a named constant or an enum instead of ''custom''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L571
- consider-using-assignment-expr: Use 'if (certificate_id := user_input.get(CONF_CERTIFICATE)):' instead https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L594
- too-many-boolean-expressions: Too many boolean expressions in if statement (8/5) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L600
- magic-value-comparison: Consider using a named constant or an enum instead of ''custom''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L604
- too-many-try-statements: try clause contains 3 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L647
- too-many-branches: Too many branches (14/12) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L558
- magic-value-comparison: Consider using a named constant or an enum instead of ''off''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L710
- magic-value-comparison: Consider using a named constant or an enum instead of ''auto''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L781
- magic-value-comparison: Consider using a named constant or an enum instead of ''custom''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L790
- too-many-statements: Too many statements (99/50) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L537
- import-error: Unable to import 'paho.mqtt.client' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L835
- unused-argument: Unused argument 'client_' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L842
- unused-argument: Unused argument 'userdata' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L843
- unused-argument: Unused argument 'flags' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L844
- unused-argument: Unused argument 'properties' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L846
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L868
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L875
- suppressed-message: Suppressed 'import-outside-toplevel' (from line 835) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L835
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/binary_sensor.py#L32
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/binary_sensor.py#L32
- magic-value-comparison: Consider using a named constant or an enum instead of ''enabled''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/binary_sensor.py#L35
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/binary_sensor.py#L41
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/diagnostics.py#L17
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L24
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L54
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L54
- magic-value-comparison: Consider using a named constant or an enum instead of ''enabled''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L72
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L76
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L97
- import-error: Unable to import 'hole' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/init.py#L8
- import-error: Unable to import 'hole.exceptions' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/init.py#L9
- magic-value-comparison: Consider using a named constant or an enum instead of '2'. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/init.py#L95
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/init.py#L116
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/init.py#L165
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L30
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L30
- unexpected-keyword-arg: Unexpected keyword argument 'entity_category' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L30
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L39
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L39
- unexpected-keyword-arg: Unexpected keyword argument 'entity_category' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L39
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L48
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L48
- unexpected-keyword-arg: Unexpected keyword argument 'entity_category' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L48
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L61
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/cert_expiry/sensor.py#L64
- import-error: Unable to import 'boschshcpy' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L9
- import-error: Unable to import 'boschshcpy.device' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L10
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L55
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L55
- unexpected-keyword-arg: Unexpected keyword argument 'state_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L55
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L55
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L62
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L62
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L62
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L68
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L68
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L68
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L74
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L74
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L82
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L82
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L87
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L87
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L92
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L92
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L97
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L97
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L102
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L102
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L102
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L108
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L108
- unexpected-keyword-arg: Unexpected keyword argument 'state_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L108
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L108
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L115
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L115
- unexpected-keyword-arg: Unexpected keyword argument 'state_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L115
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L115
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L38
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L38
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L38
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L45
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L45
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L45
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L52
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L52
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L52
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'state_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'entity_registry_enabled_default' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L89
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L89
- unexpected-keyword-arg: Unexpected keyword argument 'state_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L89
- unexpected-keyword-arg: Unexpected keyword argument 'entity_registry_enabled_default' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L89
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L89
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L98
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L98
- unexpected-keyword-arg: Unexpected keyword argument 'entity_registry_enabled_default' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L98
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L109
- line-too-long: Line too long (111/100) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L128
- too-many-instance-attributes: Too many instance attributes (18/7) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L84
- no-member: Instance of 'Sun' has no '_Entity__combined_unrecorded_attributes' member https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L128
- magic-value-comparison: Consider using a named constant or an enum instead of '10'. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L238
- unused-argument: Unused argument 'now' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L197
- redefined-variable-type: Redefinition of self.location.solar_depression type from str to int https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L216
- unused-argument: Unused argument 'now' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L268
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/speedtestdotnet/sensor.py#L71
- consider-using-assignment-expr: *Use 'if (server_name := user_input[CONF_SERVER_NAME]) != 'Auto Detect':' instead https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/speedtestdotnet/config_flow.py#L64
- magic-value-comparison: *Consider using a named constant or an enum instead of ''Auto Detect''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/speedtestdotnet/config_flow.py#L64
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/speedtestdotnet/init.py#L26
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/speedtestdotnet/init.py#L36
- import-error: Unable to import 'aiohttp.client_exceptions' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/init.py#L8
- import-error: Unable to import 'nettigo_air_monitor' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/init.py#L9
- import-error: Unable to import 'aiohttp.client_exceptions' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/coordinator.py#L6
- import-error: Unable to import 'nettigo_air_monitor' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/coordinator.py#L7
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/coordinator.py#L49
- too-few-public-methods: Too few public methods (0/2) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/coordinator.py#L23
- line-too-long: Line too long (113/100) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L271
- too-complex: 'async_validate_input_create_entry' is too complex. The McCabe rating is 15 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L161
- magic-value-comparison: Consider using a named constant or an enum instead of ''link''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L145
- magic-value-comparison: Consider using a named constant or an enum instead of ''reauth_confirm''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L149
- magic-value-comparison: Consider using a named constant or an enum instead of ''user''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L151
- too-many-locals: Too many local variables (19/15) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L161
- too-many-branches: Too many branches (14/12) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L161
- too-complex: '_setup_api_requests' is too complex. The McCabe rating is 15 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/common.py#L185
- import-error: Unable to import 'synology_dsm' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/common.py#L10
- import-error: Unable to import 'synology_dsm.api.core.security' https://github.com/home-assistant/core/blob/ee031f485028...
This comment was truncated because GitHub allows only 65536 characters in a comment.
This comment was generated for commit d87ebac49d386bc57e8484755d1eb1c589f7c6de
Failing ReadTheDocs error seems to be the following
doc/user_guide/messages/warning/implicit-str-concat.rst:55: WARNING: Lexing literal_block '[STRING_CONSTANT]\ncheck-str-concat-over-line-jumps = yes' as "toml" resulted in an error at token: 'y'. Retrying in relaxed mode.
Not sure if I need to change this here
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- 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
- suppressed-message: Suppressed 'import-outside-toplevel' (from line 442) https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/manager.py#L448
- line-too-long: Line too long (108/100) https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L257
- 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
- missing-class-docstring: Missing class docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L31
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L32
- too-few-public-methods: Too few public methods (1/2) https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L31
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L324
- 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
- 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
- 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
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L337
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L343
- 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
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L371
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L448
- while-used:
Used
whileloop https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L458
The following messages are no longer emitted:
- 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
- line-too-long: Line too long (108/100) https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L256
- 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
- missing-class-docstring: Missing class docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L30
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L31
- too-few-public-methods: Too few public methods (1/2) https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L30
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L323
- 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
- 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
- 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
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L336
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L342
- 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
- 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
- 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
- missing-function-docstring: Missing function or method docstring https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L370
- 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
- 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
- while-used:
Used
whileloop https://github.com/pylint-dev/astroid/blob/2ec0115432af4b4b3757434defc12de6712f7bb9/astroid/interpreter/_import/spec.py#L452
Effect on home-assistant: The following messages are now emitted:
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/diagnostics.py#L17
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L28
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L37
- too-many-try-statements: try clause contains 3 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/media_player.py#L193
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/init.py#L50
- unused-argument: Unused argument 'event' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/init.py#L75
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L30
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L39
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L39
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L39
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L39
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L39
- consider-using-assignment-expr: Use 'if (activity := kwargs.get(ATTR_ACTIVITY, '')):' instead https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/androidtv_remote/remote.py#L68
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L54
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L54
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'suggested_display_precision' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'entity_registry_enabled_default' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'suggested_display_precision' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L86
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L86
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L86
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L92
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L92
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L92
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L98
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L98
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L103
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L103
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L103
- unexpected-keyword-arg: Unexpected keyword argument 'suggested_display_precision' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L103
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L110
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L110
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L110
- unexpected-keyword-arg: Unexpected keyword argument 'options' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L110
- prefer-typing-namedtuple: Prefer 'typing.NamedTuple' over 'collections.namedtuple' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L119
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/sensor.py#L162
- too-complex: 'async_setup_entry' is too complex. The McCabe rating is 14 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L113
- import-error: Unable to import 'aiohttp' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L6
- import-error: Unable to import 'habitipy.aio' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L7
- import-error: Unable to import 'voluptuous' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L8
- too-few-public-methods: Too few public methods (1/2) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L116
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/init.py#L134
- import-error: Unable to import 'aiohttp' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/coordinator.py#L10
- import-error: Unable to import 'habitipy.aio' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/coordinator.py#L11
- too-many-try-statements: try clause contains 4 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/habitica/coordinator.py#L48
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bring/init.py#L39
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bring/todo.py#L36
- too-many-lines: Too many lines in module (1028/1000) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/sensor.py#L1
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/sensor.py#L961
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/device_action.py#L53
- unused-argument: Unused argument 'variables' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/device_action.py#L45
- unused-argument: Unused argument 'context' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/device_action.py#L46
- magic-value-comparison: Consider using a named constant or an enum instead of ''entity_id''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/diagnostics.py#L68
- too-many-locals: Too many local variables (18/15) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/init.py#L52
- consider-using-assignment-expr: Use 'if (unique_id := _unique_id_from_status(status)) is None:' instead https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/init.py#L109
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/init.py#L112
- consider-using-assignment-expr: Use 'if not (serial := _serial_from_status(status)):' instead https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/init.py#L188
- too-many-arguments: Too many arguments (7/5) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nut/init.py#L220
- magic-value-comparison: Consider using a named constant or an enum instead of ''name''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/conversation/http.py#L272
- magic-value-comparison: Consider using a named constant or an enum instead of ''area''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/conversation/http.py#L275
- magic-value-comparison: Consider using a named constant or an enum instead of ''domain''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/conversation/http.py#L278
- magic-value-comparison: Consider using a named constant or an enum instead of ''device_class''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/conversation/http.py#L281
- magic-value-comparison: Consider using a named constant or an enum instead of ''state''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/conversation/http.py#L284
- locally-disabled: Locally disabling import-outside-toplevel (C0415) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L835
- too-complex: 'async_step_options' is too complex. The McCabe rating is 12 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L390
- too-complex: 'async_get_broker_settings' is too complex. The McCabe rating is 25 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L537
- too-complex: 'check_certicate_chain' is too complex. The McCabe rating is 13 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L865
- unused-argument: Unused argument 'user_input' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L349
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L418
- magic-value-comparison: Consider using a named constant or an enum instead of ''birth_topic''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L434
- magic-value-comparison: Consider using a named constant or an enum instead of ''will_topic''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L444
- too-many-arguments: Too many arguments (6/5) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L537
- too-many-locals: Too many local variables (27/15) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L537
- too-many-locals: Too many local variables (16/15) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L558
- magic-value-comparison: Consider using a named constant or an enum instead of ''auto''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L569
- magic-value-comparison: Consider using a named constant or an enum instead of ''custom''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L571
- consider-using-assignment-expr: Use 'if (certificate_id := user_input.get(CONF_CERTIFICATE)):' instead https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L594
- too-many-boolean-expressions: Too many boolean expressions in if statement (8/5) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L600
- magic-value-comparison: Consider using a named constant or an enum instead of ''custom''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L604
- too-many-try-statements: try clause contains 3 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L647
- too-many-branches: Too many branches (14/12) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L558
- magic-value-comparison: Consider using a named constant or an enum instead of ''off''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L710
- magic-value-comparison: Consider using a named constant or an enum instead of ''auto''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L781
- magic-value-comparison: Consider using a named constant or an enum instead of ''custom''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L790
- too-many-statements: Too many statements (99/50) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L537
- import-error: Unable to import 'paho.mqtt.client' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L835
- unused-argument: Unused argument 'client_' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L842
- unused-argument: Unused argument 'userdata' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L843
- unused-argument: Unused argument 'flags' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L844
- unused-argument: Unused argument 'properties' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L846
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L868
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L875
- suppressed-message: Suppressed 'import-outside-toplevel' (from line 835) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/mqtt/config_flow.py#L835
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/binary_sensor.py#L32
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/binary_sensor.py#L32
- magic-value-comparison: Consider using a named constant or an enum instead of ''enabled''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/binary_sensor.py#L35
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/binary_sensor.py#L41
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/diagnostics.py#L17
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L24
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L54
- 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/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L54
- magic-value-comparison: Consider using a named constant or an enum instead of ''enabled''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L72
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L76
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/switch.py#L97
- import-error: Unable to import 'hole' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/init.py#L8
- import-error: Unable to import 'hole.exceptions' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/init.py#L9
- magic-value-comparison: Consider using a named constant or an enum instead of '2'. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/init.py#L95
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/init.py#L116
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/init.py#L165
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L30
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L30
- unexpected-keyword-arg: Unexpected keyword argument 'entity_category' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L30
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L39
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L39
- unexpected-keyword-arg: Unexpected keyword argument 'entity_category' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L39
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L48
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L48
- unexpected-keyword-arg: Unexpected keyword argument 'entity_category' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L48
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/pi_hole/update.py#L61
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/cert_expiry/sensor.py#L64
- import-error: Unable to import 'boschshcpy' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L9
- import-error: Unable to import 'boschshcpy.device' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L10
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L55
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L55
- unexpected-keyword-arg: Unexpected keyword argument 'state_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L55
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L55
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L62
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L62
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L62
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L68
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L68
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L68
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L74
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L74
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L82
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L82
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L87
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L87
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L92
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L92
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L97
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L97
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L102
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L102
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L102
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L108
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L108
- unexpected-keyword-arg: Unexpected keyword argument 'state_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L108
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L108
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L115
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L115
- unexpected-keyword-arg: Unexpected keyword argument 'state_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L115
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/bosch_shc/sensor.py#L115
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L38
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L38
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L38
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L45
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L45
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L45
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L52
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L52
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L52
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L59
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L66
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'device_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L73
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'state_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'entity_registry_enabled_default' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L80
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L89
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L89
- unexpected-keyword-arg: Unexpected keyword argument 'state_class' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L89
- unexpected-keyword-arg: Unexpected keyword argument 'entity_registry_enabled_default' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L89
- unexpected-keyword-arg: Unexpected keyword argument 'native_unit_of_measurement' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L89
- unexpected-keyword-arg: Unexpected keyword argument 'key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L98
- unexpected-keyword-arg: Unexpected keyword argument 'translation_key' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L98
- unexpected-keyword-arg: Unexpected keyword argument 'entity_registry_enabled_default' in constructor call https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L98
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/sensor.py#L109
- line-too-long: Line too long (111/100) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L128
- too-many-instance-attributes: Too many instance attributes (18/7) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L84
- no-member: Instance of 'Sun' has no '_Entity__combined_unrecorded_attributes' member https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L128
- magic-value-comparison: Consider using a named constant or an enum instead of '10'. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L238
- unused-argument: Unused argument 'now' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L197
- redefined-variable-type: Redefinition of self.location.solar_depression type from str to int https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L216
- unused-argument: Unused argument 'now' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/sun/entity.py#L268
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/speedtestdotnet/sensor.py#L71
- consider-using-assignment-expr: *Use 'if (server_name := user_input[CONF_SERVER_NAME]) != 'Auto Detect':' instead https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/speedtestdotnet/config_flow.py#L64
- magic-value-comparison: *Consider using a named constant or an enum instead of ''Auto Detect''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/speedtestdotnet/config_flow.py#L64
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/speedtestdotnet/init.py#L26
- unused-argument: Unused argument 'hass' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/speedtestdotnet/init.py#L36
- import-error: Unable to import 'aiohttp.client_exceptions' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/init.py#L8
- import-error: Unable to import 'nettigo_air_monitor' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/init.py#L9
- import-error: Unable to import 'aiohttp.client_exceptions' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/coordinator.py#L6
- import-error: Unable to import 'nettigo_air_monitor' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/coordinator.py#L7
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/coordinator.py#L49
- too-few-public-methods: Too few public methods (0/2) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/nam/coordinator.py#L23
- line-too-long: Line too long (113/100) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L271
- too-complex: 'async_validate_input_create_entry' is too complex. The McCabe rating is 15 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L161
- magic-value-comparison: Consider using a named constant or an enum instead of ''link''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L145
- magic-value-comparison: Consider using a named constant or an enum instead of ''reauth_confirm''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L149
- magic-value-comparison: Consider using a named constant or an enum instead of ''user''. https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L151
- too-many-locals: Too many local variables (19/15) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L161
- too-many-branches: Too many branches (14/12) https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/config_flow.py#L161
- too-complex: '_setup_api_requests' is too complex. The McCabe rating is 15 https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/common.py#L185
- import-error: Unable to import 'synology_dsm' https://github.com/home-assistant/core/blob/ee031f485028ef5871d0fce3644d0b6f88351535/homeassistant/components/synology_dsm/common.py#L10
- import-error: Unable to import 'synology_dsm.api.core.security' https://github.com/home-assistant/core/blob/ee031f485028...
This comment was truncated because GitHub allows only 65536 characters in a comment.
This comment was generated for commit 4d367532a8c9377a743cce785ae8c9f548ba085d
Not sure if I need to change this here
Good call, let's not block your work on that. If it hasn't been fixed on main yet, please open an issue!
π€ According to the primer, this change has no effect on the checked open source code. π€π
This comment was generated for commit 3bd7132af5585ca9314357c6306bca72c402ae86