Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Simplistic method to detect possible undefined vars #8797

Closed

Conversation

alonme
Copy link

@alonme alonme commented Jun 24, 2023

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Closes #1727

@@ -0,0 +1,21 @@
"""module docstring"""
Copy link
Author

Choose a reason for hiding this comment

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

both these test files are only to ease debugging, will be deleted

@github-actions
Copy link
Contributor

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

Effect on astroid:
The following messages are now emitted:

  1. used-before-assignment:
    Using variable 'default_offset' before assignment
    https://github.com/pylint-dev/astroid/blob/efb34f2b84c9f019ffceacef3448d8351563b6a2/astroid/nodes/node_classes.py#L932
  2. used-before-assignment:
    Using variable 'position_in_inferred_bases' before assignment
    https://github.com/pylint-dev/astroid/blob/efb34f2b84c9f019ffceacef3448d8351563b6a2/astroid/nodes/scoped_nodes/scoped_nodes.py#L124

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

  1. used-before-assignment:
    Using variable 'dep_itg' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/bootstrap.py#L629
  2. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/core.py#L2210
  3. used-before-assignment:
    Using variable 'handler' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/config_entries.py#L617
  4. used-before-assignment:
    Using variable 'current' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/config_entries.py#L827
  5. used-before-assignment:
    Using variable 'handler' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/config_entries.py#L981
  6. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/config_entries.py#L1084
  7. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/config_entries.py#L1206
  8. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/config_entries.py#L1234
  9. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/config_entries.py#L1251
  10. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/config_entries.py#L1282
  11. used-before-assignment:
    Using variable 'cache' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/loader.py#L1017
  12. used-before-assignment:
    Using variable 'auth_conf' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/config.py#L570
  13. used-before-assignment:
    Using variable 'errors' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/config.py#L1003
  14. used-before-assignment:
    Using variable 'missing' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/requirements.py#L246
  15. used-before-assignment:
    Using variable 'flow' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/data_entry_flow.py#L187
  16. used-before-assignment:
    Using variable 'flow' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/data_entry_flow.py#L283
  17. used-before-assignment:
    Using variable 'flow' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/data_entry_flow.py#L374
  18. used-before-assignment:
    Using variable 'list_len' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/util/percentage.py#L51
  19. used-before-assignment:
    Using variable 'left' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/util/dt.py#L343
  20. used-before-assignment:
    Using variable 'next_second' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/util/dt.py#L375
  21. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/util/location.py#L55
  22. used-before-assignment:
    Using variable 'has_devices' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/config_entry_flow.py#L76
  23. used-before-assignment:
    Using variable 'log_timing' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/update_coordinator.py#L367
  24. used-before-assignment:
    Using variable 'start' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/update_coordinator.py#L371
  25. used-before-assignment:
    Using variable 'base_component' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/service.py#L121
  26. used-before-assignment:
    Using variable 'request' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/network.py#L207
  27. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity.py#L125
  28. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity.py#L140
  29. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity.py#L155
  30. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity.py#L170
  31. used-before-assignment:
    Using variable 'name' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity.py#L358
  32. used-before-assignment:
    Using variable 'state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity.py#L698
  33. used-before-assignment:
    Using variable 'device_entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity.py#L724
  34. used-before-assignment:
    Using variable 'device_id' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity.py#L1120
  35. used-before-assignment:
    Using variable 'is_on' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity.py#L1182
  36. used-before-assignment:
    Using variable 'raw_storage' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/collection.py#L270
  37. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity_registry.py#L1209
  38. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity_registry.py#L1225
  39. used-before-assignment:
    Using variable 'ha_host' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/config_entry_oauth2_flow.py#L145
  40. used-before-assignment:
    Using variable 'secret' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/config_entry_oauth2_flow.py#L541
  41. used-before-assignment:
    Using variable 'platform' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity_platform.py#L905
  42. used-before-assignment:
    Using variable 'time_today' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/template.py#L2110
  43. used-before-assignment:
    Using variable 'cached' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/template.py#L2576
  44. used-before-assignment:
    Using variable 'entity_obj' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity_component.py#L56
  45. used-before-assignment:
    Using variable 'platform' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/entity_component.py#L197
  46. used-before-assignment:
    Using variable 'all_scripts' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/script.py#L1178
  47. used-before-assignment:
    Using variable 'path' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/trace.py#L155
  48. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/trace.py#L216
  49. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/trace.py#L223
  50. used-before-assignment:
    Using variable 'last_triggered' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/ratelimit.py#L84
  51. used-before-assignment:
    Using variable 'config_entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/aiohttp_client.py#L245
  52. used-before-assignment:
    Using variable 'intents' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/intent.py#L52
  53. used-before-assignment:
    Using variable 'intents' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/intent.py#L67
  54. used-before-assignment:
    Using variable 'platform' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/discovery.py#L115
  55. used-before-assignment:
    Using variable 'callbacks_list' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/event.py#L272
  56. used-before-assignment:
    Using variable 'callbacks_list' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/event.py#L395
  57. used-before-assignment:
    Using variable 'callbacks_list' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/event.py#L456
  58. used-before-assignment:
    Using variable 'entity_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/location.py#L69
  59. used-before-assignment:
    Using variable 'selector_class' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/selector.py#L39
  60. used-before-assignment:
    Using variable 'stored_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/restore_state.py#L340
  61. used-before-assignment:
    Using variable 'stored_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/helpers/restore_state.py#L346
  62. used-before-assignment:
    Using variable 'module' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/__init__.py#L375
  63. used-before-assignment:
    Using variable 'module' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/__init__.py#L389
  64. used-before-assignment:
    Using variable 'group' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/auth_store.py#L107
  65. used-before-assignment:
    Using variable 'group' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/auth_store.py#L171
  66. used-before-assignment:
    Using variable 'token_type' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/auth_store.py#L479
  67. used-before-assignment:
    Using variable 'entity_func' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/permissions/__init__.py#L47
  68. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/providers/homeassistant.py#L88
  69. used-before-assignment:
    Using variable 'folded' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/providers/homeassistant.py#L106
  70. used-before-assignment:
    Using variable 'notify_setting' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/mfa_modules/notify.py#L215
  71. used-before-assignment:
    Using variable 'notify_setting' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/mfa_modules/notify.py#L231
  72. used-before-assignment:
    Using variable 'notify_setting' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/mfa_modules/notify.py#L255
  73. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/mfa_modules/totp.py#L101
  74. used-before-assignment:
    Using variable 'ota_secret' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/auth/mfa_modules/totp.py#L173
  75. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/zeversolar/__init__.py#L25
  76. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/scrape/__init__.py#L113
  77. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/scrape/coordinator.py#L36
  78. used-before-assignment:
    Using variable 'device_name' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lutron_caseta/button.py#L57
  79. used-before-assignment:
    Using variable 'unique_id' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lutron_caseta/__init__.py#L139
  80. used-before-assignment:
    Using variable 'lip_buttons_name_to_num' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lutron_caseta/__init__.py#L441
  81. used-before-assignment:
    Using variable 'leap_button_num_to_name' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lutron_caseta/__init__.py#L441
  82. used-before-assignment:
    Using variable 'keypad' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lutron_caseta/__init__.py#L466
  83. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lutron_caseta/__init__.py#L506
  84. used-before-assignment:
    Using variable 'schema' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lutron_caseta/device_trigger.py#L374
  85. used-before-assignment:
    Using variable 'keypad' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lutron_caseta/device_trigger.py#L393
  86. used-before-assignment:
    Using variable 'lutron_id' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lutron_caseta/config_flow.py#L195
  87. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/onboarding/__init__.py#L63
  88. used-before-assignment:
    Using variable 'trigger_type' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/climate/device_trigger.py#L141
  89. used-before-assignment:
    Using variable 'state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/climate/device_condition.py#L89
  90. used-before-assignment:
    Using variable 'new_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/api/__init__.py#L222
  91. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/easyenergy/__init__.py#L35
  92. used-before-assignment:
    Using variable 'state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/logentries/__init__.py#L36
  93. used-before-assignment:
    Using variable 'user' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/twitch/sensor.py#L143
  94. used-before-assignment:
    Using variable 'auth' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/html5/notify.py#L338
  95. used-before-assignment:
    Using variable 'targets' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/html5/notify.py#L496
  96. used-before-assignment:
    Using variable 'script_entity' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/script/__init__.py#L109
  97. used-before-assignment:
    Using variable 'script_entity' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/script/__init__.py#L174
  98. used-before-assignment:
    Using variable 'conf' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/script/__init__.py#L199
  99. used-before-assignment:
    Using variable 'blueprint_inputs' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/script/config.py#L99
  100. used-before-assignment:
    Using variable 'title' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/volumio/browse_media.py#L159
  101. used-before-assignment:
    Using variable 'error' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/nfandroidtv/config_flow.py#L37
  102. used-before-assignment:
    Using variable 'wl_speed' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/wilight/fan.py#L83
  103. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/ld2410_ble/__init__.py#L97
  104. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/led_ble/__init__.py#L121
  105. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/fireservicerota/sensor.py#L85
  106. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/keymitt_ble/__init__.py#L50
  107. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/iotawatt/__init__.py#L25
  108. used-before-assignment:
    Using variable 'errors' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/iotawatt/config_flow.py#L68
  109. used-before-assignment:
    Using variable 'temperature' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/ephember/climate.py#L160
  110. used-before-assignment:
    Using variable 'conf' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/sql/__init__.py#L83
  111. used-before-assignment:
    Using variable 'old_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/input_datetime/__init__.py#L283
  112. used-before-assignment:
    Using variable 'cur_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/input_datetime/reproduce_state.py#L48
  113. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/anova/__init__.py#L78
  114. used-before-assignment:
    Using variable 'cur_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/input_boolean/reproduce_state.py#L41
  115. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/light/__init__.py#L189
  116. used-before-assignment:
    Using variable 'color_mode' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/light/__init__.py#L839
  117. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/eight_sleep/__init__.py#L176
  118. used-before-assignment:
    Using variable 'val' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/eight_sleep/sensor.py#L164
  119. used-before-assignment:
    Using variable 'content_type' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/xmpp/notify.py#L326
  120. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/github/__init__.py#L91
  121. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/mikrotik/__init__.py#L54
  122. used-before-assignment:
    Using variable 'supported' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/esphome/light.py#L286
  123. used-before-assignment:
    Using variable 'dashboard' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/esphome/update.py#L45
  124. used-before-assignment:
    Using variable 'dashboard' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/esphome/config_flow.py#L373
  125. used-before-assignment:
    Using variable 'state_class' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/esphome/sensor.py#L84
  126. used-before-assignment:
    Using variable 'restored' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/esphome/entry_data.py#L328
  127. used-before-assignment:
    Using variable 'scanner' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/esphome/bluetooth/client.py#L314
  128. used-before-assignment:
    Using variable 'conf' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/emulated_roku/__init__.py#L56
  129. used-before-assignment:
    Using variable 'platform' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/fibaro/__init__.py#L325
  130. used-before-assignment:
    Using variable 'text' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/wyoming/stt.py#L127
  131. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/sky_hub/device_tracker.py#L79
  132. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/rapt_ble/__init__.py#L49
  133. used-before-assignment:
    Using variable 'state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/emulated_hue/hue_api.py#L309
  134. used-before-assignment:
    Using variable 'entity' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/emulated_hue/hue_api.py#L349
  135. used-before-assignment:
    Using variable 'person_entity' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/person/__init__.py#L161
  136. used-before-assignment:
    Using variable 'token' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/doorbird/__init__.py#L77
  137. used-before-assignment:
    Using variable 'service_name' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/mobile_app/device_action.py#L76
  138. used-before-assignment:
    Using variable 'targets' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/mobile_app/notify.py#L129
  139. used-before-assignment:
    Using variable 'state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/mobile_app/entity.py#L46
  140. used-before-assignment:
    Using variable 'entity_id' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/mobile_app/webhook.py#L706
  141. used-before-assignment:
    Using variable 'gps' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/mobile_app/device_tracker.py#L83
  142. used-before-assignment:
    Using variable 'gps' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/mobile_app/device_tracker.py#L91
  143. used-before-assignment:
    Using variable 'state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/mobile_app/device_tracker.py#L132
  144. used-before-assignment:
    Using variable 'last_sensor_data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/mobile_app/sensor.py#L100
  145. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/snapcast/__init__.py#L45
  146. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/aladdin_connect/__init__.py#L48
  147. used-before-assignment:
    Using variable 'state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/iperf3/sensor.py#L73
  148. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/islamic_prayer_times/__init__.py#L39
  149. used-before-assignment:
    Using variable 'app_details' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/xbox/media_player.py#L134
  150. used-before-assignment:
    Using variable 'app_details' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/xbox/media_player.py#L143
  151. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/sleepiq/__init__.py#L119
  152. used-before-assignment:
    Using variable 'error' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/sleepiq/config_flow.py#L108
  153. used-before-assignment:
    Using variable 'cur_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/input_text/reproduce_state.py#L31
  154. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/airzone/__init__.py#L97
  155. used-before-assignment:
    Using variable 'dmr_device' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/samsungtv/media_player.py#L348
  156. used-before-assignment:
    Using variable 'device' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/samsungtv/helpers.py#L24
  157. used-before-assignment:
    Using variable 'device' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/samsungtv/bridge.py#L488
  158. used-before-assignment:
    Using variable 'meter_uid' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/fronius/sensor.py#L712
  159. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/laundrify/__init__.py#L52
  160. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/airthings_ble/__init__.py#L74
  161. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/roku/__init__.py#L39
  162. used-before-assignment:
    Using variable 'image_entity' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/image/__init__.py#L189
  163. used-before-assignment:
    Using variable 'cur_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/switch/reproduce_state.py#L44
  164. used-before-assignment:
    Using variable 'dataset' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/thread/websocket_api.py#L127
  165. used-before-assignment:
    Using variable 'channel' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/thread/dataset_store.py#L47
  166. used-before-assignment:
    Using variable 'name' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/thread/dataset_store.py#L64
  167. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/thread/dataset_store.py#L160
  168. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/thread/dataset_store.py#L331
  169. used-before-assignment:
    Using variable 'entry' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/thread/dataset_store.py#L341
  170. used-before-assignment:
    Using variable 'group_id_base' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/deconz/__init__.py#L110
  171. used-before-assignment:
    Using variable 'unique_id' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/deconz/sensor.py#L351
  172. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/snmp/device_tracker.py#L96
  173. used-before-assignment:
    Using variable 'remote_domain' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/cloud/__init__.py#L214
  174. used-before-assignment:
    Using variable 'gender' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/cloud/tts.py#L44
  175. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/cloud/http_api.py#L402
  176. used-before-assignment:
    Using variable 'default_expose' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/cloud/alexa_config.py#L292
  177. used-before-assignment:
    Using variable 'prefs' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/cloud/prefs.py#L85
  178. used-before-assignment:
    Using variable 'user_id' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/cloud/prefs.py#L293
  179. used-before-assignment:
    Using variable 'controller_data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/livisi/config_flow.py#L76
  180. used-before-assignment:
    Using variable 'controller_type' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/livisi/coordinator.py#L87
  181. used-before-assignment:
    Using variable 'conf' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/emulated_kasa/__init__.py#L55
  182. used-before-assignment:
    Using variable 'state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/emulated_kasa/__init__.py#L105
  183. used-before-assignment:
    Using variable 'state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/emulated_kasa/__init__.py#L121
  184. used-before-assignment:
    Using variable 'dev_model' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/roon/media_player.py#L167
  185. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/utility_meter/__init__.py#L236
  186. used-before-assignment:
    Using variable 'new_state_val' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/utility_meter/sensor.py#L403
  187. used-before-assignment:
    Using variable 'new_state_val' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/utility_meter/sensor.py#L461
  188. used-before-assignment:
    Using variable 'new_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/utility_meter/sensor.py#L470
  189. used-before-assignment:
    Using variable 'restored_last_extra_data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/utility_meter/sensor.py#L698
  190. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/steamist/__init__.py#L69
  191. used-before-assignment:
    Using variable 'host' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/steamist/config_flow.py#L165
  192. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/ecowitt/__init__.py#L52
  193. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/electrasmart/__init__.py#L41
  194. used-before-assignment:
    Using variable 'temperature' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/electrasmart/climate.py#L254
  195. used-before-assignment:
    Using variable 'device' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/onvif/config_flow.py#L178
  196. used-before-assignment:
    Using variable 'parser' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/onvif/event.py#L176
  197. used-before-assignment:
    Using variable 'possible_uids' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/onvif/event.py#L201
  198. used-before-assignment:
    Using variable 'result' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/onvif/event.py#L638
  199. used-before-assignment:
    Using variable 'temperature' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/zwave_me/climate.py#L66
  200. used-before-assignment:
    Using variable 'name_prefix' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/sma/sensor.py#L92
  201. used-before-assignment:
    Using variable 'restored_last_extra_data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/template/binary_sensor.py#L455
  202. used-before-assignment:
    Using variable 'state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/template/sensor.py#L294
  203. used-before-assignment:
    Using variable 'saved_queue_position' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/forked_daapd/media_player.py#L793
  204. undefined-variable:
    Undefined variable 'other_sources'
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/forked_daapd/media_player.py#L865
  205. used-before-assignment:
    Using variable 'updated_tag' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/wirelesstag/__init__.py#L207
  206. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/geocaching/__init__.py#L39
  207. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/bthome/__init__.py#L130
  208. used-before-assignment:
    Using variable 'temperature' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tolo/climate.py#L142
  209. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/qingping/__init__.py#L49
  210. used-before-assignment:
    Using variable 'temp' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/velbus/climate.py#L74
  211. used-before-assignment:
    Using variable 'model' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/zeroconf/__init__.py#L522
  212. used-before-assignment:
    Using variable 'ip_addresses' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/zeroconf/__init__.py#L550
  213. used-before-assignment:
    Using variable 'value' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/arcam_fmj/media_player.py#L250
  214. used-before-assignment:
    Using variable 'value' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/arcam_fmj/media_player.py#L262
  215. used-before-assignment:
    Using variable 'value' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/arcam_fmj/media_player.py#L276
  216. used-before-assignment:
    Using variable 'value' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/arcam_fmj/media_player.py#L283
  217. used-before-assignment:
    Using variable 'value' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/pyload/sensor.py#L130
  218. used-before-assignment:
    Using variable 'cur_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/water_heater/reproduce_state.py#L68
  219. used-before-assignment:
    Using variable 'segment' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/stream/hls.py#L128
  220. used-before-assignment:
    Using variable 'body' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/stream/hls.py#L351
  221. used-before-assignment:
    Using variable 'segment' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/stream/hls.py#L428
  222. used-before-assignment:
    Using variable 'key' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/upnp/sensor.py#L188
  223. used-before-assignment:
    Using variable 'version' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/update/__init__.py#L137
  224. used-before-assignment:
    Using variable 'backup' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/update/__init__.py#L156
  225. used-before-assignment:
    Using variable 'latest_version' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/update/__init__.py#L292
  226. used-before-assignment:
    Using variable 'latest_version' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/update/__init__.py#L352
  227. used-before-assignment:
    Using variable 'installed_version' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/update/__init__.py#L354
  228. used-before-assignment:
    Using variable 'uid' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/kodi/media_player.py#L229
  229. used-before-assignment:
    Using variable 'total_time' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/kodi/media_player.py#L567
  230. used-before-assignment:
    Using variable 'time' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/kodi/media_player.py#L578
  231. used-before-assignment:
    Using variable 'thumbnail' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/kodi/media_player.py#L591
  232. used-before-assignment:
    Using variable 'ws_port' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/kodi/config_flow.py#L72
  233. used-before-assignment:
    Using variable 'uuid' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/kodi/config_flow.py#L115
  234. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tautulli/__init__.py#L43
  235. used-before-assignment:
    Using variable 'error' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tautulli/config_flow.py#L35
  236. used-before-assignment:
    Using variable 'temperature' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/switcher_kis/climate.py#L189
  237. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/xiaomi_ble/__init__.py#L151
  238. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/ruuvitag_ble/__init__.py#L49
  239. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/pure_energie/__init__.py#L40
  240. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/yalexs_ble/__init__.py#L139
  241. used-before-assignment:
    Using variable 'macs' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/linksys_smart/device_tracker.py#L79
  242. used-before-assignment:
    Using variable 'session' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/google_sheets/__init__.py#L124
  243. used-before-assignment:
    Using variable 'coordinator_data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/proxmoxve/binary_sensor.py#L46
  244. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/proxmoxve/binary_sensor.py#L100
  245. used-before-assignment:
    Using variable 'ble_device' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/snooz/__init__.py#L31
  246. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/snooz/__init__.py#L62
  247. used-before-assignment:
    Using variable 'target_temperature' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/moehlenhoff_alpha2/climate.py#L120
  248. used-before-assignment:
    Using variable 'panel' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/aqualogic/switch.py#L84
  249. used-before-assignment:
    Using variable 'panel' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/aqualogic/switch.py#L90
  250. used-before-assignment:
    Using variable 'panel' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/aqualogic/switch.py#L96
  251. used-before-assignment:
    Using variable 'first_passage' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/delijn/sensor.py#L116
  252. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/airvisual_pro/__init__.py#L113
  253. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/ipma/__init__.py#L67
  254. used-before-assignment:
    Using variable 'platform' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lookin/__init__.py#L124
  255. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lookin/__init__.py#L188
  256. used-before-assignment:
    Using variable 'mode' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lookin/climate.py#L127
  257. used-before-assignment:
    Using variable 'temperature' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lookin/climate.py#L134
  258. used-before-assignment:
    Using variable 'mode' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lookin/climate.py#L167
  259. used-before-assignment:
    Using variable 'mode' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/lookin/climate.py#L174
  260. used-before-assignment:
    Using variable 'automation_entity' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/automation/__init__.py#L177
  261. used-before-assignment:
    Using variable 'automation_entity' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/automation/__init__.py#L242
  262. used-before-assignment:
    Using variable 'conf' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/automation/__init__.py#L295
  263. used-before-assignment:
    Using variable 'cur_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/automation/reproduce_state.py#L44
  264. used-before-assignment:
    Using variable 'blueprint_inputs' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/automation/config.py#L93
  265. used-before-assignment:
    Using variable 'config_contents' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/fitbit/sensor.py#L333
  266. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/ruuvi_gateway/__init__.py#L42
  267. used-before-assignment:
    Using variable 'cart' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/picnic/coordinator.py#L67
  268. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/renault/binary_sensor.py#L72
  269. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tesla_wall_connector/__init__.py#L122
  270. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tplink_omada/__init__.py#L60
  271. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/dremel_3d_printer/__init__.py#L48
  272. used-before-assignment:
    Using variable 'closed' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/cover/__init__.py#L277
  273. used-before-assignment:
    Using variable 'cur_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/cover/reproduce_state.py#L57
  274. used-before-assignment:
    Using variable 'position' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/cover/device_trigger.py#L181
  275. used-before-assignment:
    Using variable 'position_attr' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/cover/device_condition.py#L159
  276. used-before-assignment:
    Using variable 'is_on' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/vizio/media_player.py#L209
  277. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/baf/__init__.py#L56
  278. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/radiotherm/__init__.py#L76
  279. used-before-assignment:
    Using variable 'code' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/radiotherm/climate.py#L128
  280. used-before-assignment:
    Using variable 'temperature' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/radiotherm/climate.py#L172
  281. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/launch_library/__init__.py#L72
  282. used-before-assignment:
    Using variable 'conf' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/meteo_france/__init__.py#L49
  283. used-before-assignment:
    Using variable 'restored_last_extra_data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/text/__init__.py#L270
  284. used-before-assignment:
    Using variable 'cur_state' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/text/reproduce_state.py#L30
  285. used-before-assignment:
    Using variable 'last_reported_dt' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/enphase_envoy/sensor.py#L56
  286. used-before-assignment:
    Using variable 'value' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/enphase_envoy/sensor.py#L152
  287. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/overkiz/__init__.py#L146
  288. used-before-assignment:
    Using variable 'targets' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/twilio_call/notify.py#L64
  289. used-before-assignment:
    Using variable 'data' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/bt_smarthub/device_tracker.py#L94
  290. used-before-assignment:
    Using variable 'targets' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/ios/notify.py#L94
  291. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/synology_dsm/__init__.py#L134
  292. used-before-assignment:
    Using variable 'details' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/synology_dsm/update.py#L83
  293. used-before-assignment:
    Using variable 'points' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/kaiterra/api_data.py#L78
  294. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/qbittorrent/__init__.py#L52
  295. used-before-assignment:
    Using variable 'extra_key' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/incomfort/sensor.py#L111
  296. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/switchbee/__init__.py#L86
  297. used-before-assignment:
    Using variable 'live_measurement' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tibber/sensor.py#L467
  298. used-before-assignment:
    Using variable 'live_measurement' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tibber/sensor.py#L539
  299. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/skybell/__init__.py#L65
  300. used-before-assignment:
    Using variable 'engine_instance' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tts/__init__.py#L165
  301. used-before-assignment:
    Using variable 'engine_instance' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tts/__init__.py#L509
  302. used-before-assignment:
    Using variable 'engine_instance' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tts/__init__.py#L545
  303. used-before-assignment:
    Using variable 'filename' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tts/__init__.py#L690
  304. used-before-assignment:
    Using variable 'record' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/tts/__init__.py#L742
  305. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/aseko_pool_live/__init__.py#L51
  306. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/ipp/__init__.py#L43
  307. used-before-assignment:
    Using variable 'unique_id' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/ipp/sensor.py#L44
  308. used-before-assignment:
    Using variable 'unload_ok' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/pvoutput/__init__.py#L26
  309. used-before-assignment:
    Using variable 'obis' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc98a3be182f4ef09ba0cf8be7882/homeassistant/components/edl21/sensor.py#L337
  310. used-before-assignment:
    Using variable 'temperature' before assignment
    https://github.com/home-assistant/core/blob/d811fa0e74bcc9...

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

This comment was generated for commit 21e879e

@jacobtylerwalls jacobtylerwalls self-requested a review June 24, 2023 18:28
@jacobtylerwalls
Copy link
Member

Hi @alonme thanks for this. In #1727 (comment) I was suggesting something along the lines of this, did you investigate it yet? It fixes the issue but haven't checked the test suite or the primer result.

diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index 3ea2d04a5..ab7ed9618 100644
--- a/pylint/checkers/variables.py
+++ b/pylint/checkers/variables.py
@@ -735,13 +735,13 @@ scope_type : {self._atomic.scope_type}
         # Only search else branch when test condition is inferred to be false
         if all_inferred and only_search_else:
             return NamesConsumer._branch_handles_name(name, node.orelse)
-        # Only search if branch when test condition is inferred to be true
-        if all_inferred and only_search_if:
-            return NamesConsumer._branch_handles_name(name, node.body)
+        # # Only search if branch when test condition is inferred to be true
+        # if all_inferred and only_search_if:
+        #     return NamesConsumer._branch_handles_name(name, node.body)
         # Search both if and else branches
         return NamesConsumer._branch_handles_name(
             name, node.body
-        ) or NamesConsumer._branch_handles_name(name, node.orelse)
+        ) and NamesConsumer._branch_handles_name(name, node.orelse)
 
     @staticmethod
     def _branch_handles_name(name: str, body: Iterable[nodes.NodeNG]) -> bool:

@jacobtylerwalls
Copy link
Member

Closing in favor of #8952

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

Successfully merging this pull request may close these issues.

used-before-assignment false negative after conditionals
2 participants