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

Unused function call extension #8732

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

Conversation

LukasKrocek
Copy link

@LukasKrocek LukasKrocek commented Jun 1, 2023

Type of Changes

Type
✨ New feature

Description

Adding extension to check for unassigned non-nullable return values from function/method calls. This update encourages proper handling of returned values, which is especially handy when working with immutable classes and collections.

Closes #7935

@Pierre-Sassoulas Pierre-Sassoulas added the Enhancement ✨ Improvement to a component label Jun 2, 2023
@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Merging #8732 (900b7a4) into main (6bfa040) will decrease coverage by 0.02%.
The diff coverage is 87.50%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8732      +/-   ##
==========================================
- Coverage   95.82%   95.80%   -0.02%     
==========================================
  Files         173      174       +1     
  Lines       18381    18421      +40     
==========================================
+ Hits        17613    17648      +35     
- Misses        768      773       +5     
Impacted Files Coverage Δ
pylint/extensions/function_return_not_assigned.py 87.50% <87.50%> (ø)

@github-actions

This comment has been minimized.

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Thank you for opening the pull request :)

Could you add a changelog entry (https://github.com/pylint-dev/pylint/blob/main/doc/whatsnew/fragments/5159.new_check), an example of bad/good code in the documentation and cover the missing line please (https://github.com/pylint-dev/pylint/tree/main/doc/data/messages/c/comparison-of-constants) ? There's an easier way to cover a lot of use cases with functional tests, see https://github.com/pylint-dev/pylint/blob/main/tests/functional/ext/check_elif/check_elif.py for example.

msgs = {
"W5486": (
"Function returned value which is never used",
"unused-return-value",
Copy link
Member

Choose a reason for hiding this comment

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

I just realized that we have a message for expression that aren't assigned : https://pylint.readthedocs.io/en/stable/user_guide/messages/warning/expression-not-assigned.html. Maybe grouping those two in the same checker and calling this one the same way would make sense:

Suggested change
"unused-return-value",
"function-return-not-assigned",

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the review. Docs and examples added, switched to functional tests, message was renamed to function-return-not-assigned.


some_var = ""
# next line should probably raise?
func_that_returns_something() if some_var else func_that_returns_none()
Copy link
Author

Choose a reason for hiding this comment

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

parent of all three func_that_returns_something some_var and func_that_returns_none is IfExpr. If some_var would be function call, I would consider it to be used while func_that_returns_something func_that_returns_none not. func_that_returns_something should raise function-return-not-assigned

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

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

Effect on astroid:
The following messages are now emitted:

  1. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/pylint-dev/astroid/blob/cc20cfff0cb8033f2f8e8e1f74db770ef42eadb4/astroid/__init__.py#L193
  2. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/pylint-dev/astroid/blob/cc20cfff0cb8033f2f8e8e1f74db770ef42eadb4/astroid/raw_building.py#L511
  3. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/pylint-dev/astroid/blob/cc20cfff0cb8033f2f8e8e1f74db770ef42eadb4/astroid/modutils.py#L441
  4. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/pylint-dev/astroid/blob/cc20cfff0cb8033f2f8e8e1f74db770ef42eadb4/astroid/protocols.py#L813
  5. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/pylint-dev/astroid/blob/cc20cfff0cb8033f2f8e8e1f74db770ef42eadb4/astroid/protocols.py#L820
  6. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/pylint-dev/astroid/blob/cc20cfff0cb8033f2f8e8e1f74db770ef42eadb4/astroid/nodes/scoped_nodes/scoped_nodes.py#L1663

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

  1. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/config_entries.py#L1485
  2. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L87
  3. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L88
  4. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L95
  5. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L98
  6. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L101
  7. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L106
  8. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L111
  9. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L119
  10. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L122
  11. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L128
  12. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L134
  13. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L137
  14. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/__main__.py#L140
  15. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/bootstrap.py#L244
  16. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/config.py#L466
  17. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/config.py#L489
  18. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/config.py#L761
  19. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/core.py#L670
  20. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/core.py#L1069
  21. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/core.py#L1137
  22. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/core.py#L1174
  23. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/core.py#L1552
  24. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/core.py#L1744
  25. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/core.py#L1777
  26. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/core.py#L2065
  27. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/auth.py#L19
  28. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/auth.py#L20
  29. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/auth.py#L48
  30. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/__init__.py#L73
  31. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/ensure_config.py#L17
  32. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/ensure_config.py#L24
  33. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/check_config.py#L62
  34. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/check_config.py#L63
  35. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/check_config.py#L69
  36. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/check_config.py#L77
  37. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/check_config.py#L80
  38. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/macos/__init__.py#L33
  39. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/macos/__init__.py#L41
  40. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/benchmark/__init__.py#L37
  41. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/benchmark/__init__.py#L38
  42. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/benchmark/__init__.py#L47
  43. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/scripts/benchmark/__init__.py#L313
  44. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/util/async_.py#L88
  45. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/util/package.py#L40
  46. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/util/network.py#L63
  47. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/util/yaml/loader.py#L54
  48. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/auth/__init__.py#L574
  49. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/auth/permissions/merge.py#L21
  50. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/dispatcher.py#L28
  51. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/entity_registry.py#L649
  52. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/entity_registry.py#L810
  53. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/config_entry_flow.py#L185
  54. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/config_entry_flow.py#L253
  55. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/event.py#L139
  56. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/device_registry.py#L370
  57. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/entity_platform.py#L391
  58. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/entity_platform.py#L437
  59. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/template.py#L643
  60. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/template.py#L649
  61. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/template.py#L1319
  62. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/template.py#L1357
  63. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/selector.py#L523
  64. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/selector.py#L545
  65. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/selector.py#L1173
  66. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/service.py#L250
  67. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/check_config.py#L86
  68. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/check_config.py#L90
  69. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/check_config.py#L116
  70. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/check_config.py#L134
  71. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/check_config.py#L137
  72. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/check_config.py#L143
  73. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/check_config.py#L155
  74. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/check_config.py#L173
  75. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/check_config.py#L221
  76. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/check_config.py#L227
  77. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/script.py#L1436
  78. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/helpers/reload.py#L186
  79. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/prometheus/__init__.py#L590
  80. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/avion/light.py#L112
  81. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/avion/light.py#L117
  82. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/acer_projector/switch.py#L139
  83. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/acer_projector/switch.py#L145
  84. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/pioneer/media_player.py#L119
  85. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/home_connect/api.py#L62
  86. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/linksys_smart/device_tracker.py#L52
  87. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/uvc/camera.py#L215
  88. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/ddwrt/device_tracker.py#L79
  89. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/x10/light.py#L54
  90. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/x10/light.py#L94
  91. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/x10/light.py#L96
  92. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/x10/light.py#L103
  93. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/x10/light.py#L105
  94. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/wirelesstag/__init__.py#L139
  95. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/konnected/config_flow.py#L825
  96. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/motioneye/config_flow.py#L108
  97. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/ads/__init__.py#L123
  98. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/ads/__init__.py#L291
  99. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/trend/binary_sensor.py#L205
  100. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/sql/config_flow.py#L120
  101. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/sql/config_flow.py#L177
  102. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mysensors/config_flow.py#L217
  103. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mysensors/config_flow.py#L225
  104. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mysensors/config_flow.py#L296
  105. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/spotify/media_player.py#L383
  106. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/facebox/image_processing.py#L161
  107. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/neato/api.py#L32
  108. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/senseme/config_flow.py#L101
  109. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/statistics/sensor.py#L459
  110. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/statistics/sensor.py#L460
  111. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/smartthings/config_flow.py#L129
  112. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/ring/__init__.py#L47
  113. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/google/__init__.py#L350
  114. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/smtp/notify.py#L152
  115. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/smtp/notify.py#L153
  116. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/smtp/notify.py#L155
  117. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/smtp/notify.py#L181
  118. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/smtp/notify.py#L224
  119. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/smtp/notify.py#L230
  120. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/smtp/notify.py#L234
  121. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/smtp/notify.py#L236
  122. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/bluetooth/wrappers.py#L66
  123. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/bluetooth/match.py#L112
  124. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/ping/device_tracker.py#L64
  125. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/ondilo_ico/api.py#L33
  126. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/owntracks/messages.py#L224
  127. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/owntracks/messages.py#L247
  128. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/verisure/__init__.py#L72
  129. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mqtt/util.py#L139
  130. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mqtt/tag.py#L128
  131. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mqtt/fan.py#L382
  132. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mqtt/fan.py#L427
  133. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mqtt/fan.py#L453
  134. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mqtt/fan.py#L483
  135. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mqtt/trigger.py#L73
  136. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mqtt/device_trigger.py#L247
  137. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mqtt/client.py#L205
  138. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/mqtt/client.py#L755
  139. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/dhcp/__init__.py#L454
  140. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/media_source/local_source.py#L53
  141. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zengge/light.py#L120
  142. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/netatmo/data_handler.py#L175
  143. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/netatmo/data_handler.py#L181
  144. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/osramlightify/light.py#L175
  145. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/osramlightify/light.py#L177
  146. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/osramlightify/light.py#L321
  147. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/denon/media_player.py#L162
  148. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/denon/media_player.py#L167
  149. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/push/camera.py#L162
  150. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telegram_bot/__init__.py#L645
  151. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telegram_bot/__init__.py#L738
  152. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telegram_bot/__init__.py#L766
  153. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telegram_bot/__init__.py#L780
  154. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telegram_bot/__init__.py#L792
  155. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telegram_bot/__init__.py#L805
  156. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telegram_bot/__init__.py#L818
  157. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telegram_bot/__init__.py#L830
  158. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telegram_bot/__init__.py#L853
  159. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telegram_bot/__init__.py#L875
  160. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telegram_bot/__init__.py#L900
  161. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L356
  162. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L368
  163. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L375
  164. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L379
  165. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L384
  166. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L386
  167. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L390
  168. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L396
  169. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L404
  170. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L408
  171. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L526
  172. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L538
  173. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L544
  174. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L548
  175. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L553
  176. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L555
  177. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L559
  178. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/onkyo/media_player.py#L565
  179. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/asuswrt/router.py#L364
  180. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/knx/config_flow.py#L276
  181. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/knx/config_flow.py#L284
  182. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/knx/config_flow.py#L653
  183. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/knx/config_flow.py#L659
  184. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/knx/config_flow.py#L734
  185. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/xiaomi/camera.py#L106
  186. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/xiaomi/camera.py#L112
  187. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/xiaomi/camera.py#L124
  188. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/xiaomi/camera.py#L136
  189. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/xiaomi/device_tracker.py#L58
  190. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/google_assistant/helpers.py#L676
  191. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/garadget/cover.py#L139
  192. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/dlna_dmr/config_flow.py#L362
  193. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/dlna_dmr/data.py#L54
  194. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/homematic/entity.py#L114
  195. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/ue_smart_radio/media_player.py#L109
  196. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/xiaomi_aqara/__init__.py#L268
  197. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/aruba/device_tracker.py#L61
  198. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/blueprint/models.py#L328
  199. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/blueprint/models.py#L355
  200. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zwave_js/api.py#L878
  201. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zwave_js/api.py#L931
  202. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zwave_js/device_condition.py#L118
  203. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zwave_js/device_trigger.py#L230
  204. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/sonos/speaker.py#L212
  205. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/python_script/__init__.py#L91
  206. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/python_script/__init__.py#L95
  207. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/tikteck/light.py#L98
  208. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/tikteck/light.py#L104
  209. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.py#L85
  210. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/overkiz/climate_entities/atlantic_electrical_towel_dryer.py#L87
  211. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/smappee/api.py#L43
  212. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/aemet/weather_update_coordinator.py#L198
  213. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/swisscom/device_tracker.py#L52
  214. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/twitter/notify.py#L96
  215. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/twitter/notify.py#L99
  216. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/twitter/notify.py#L156
  217. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/file_upload/__init__.py#L52
  218. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/file_upload/__init__.py#L78
  219. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/file_upload/__init__.py#L87
  220. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/openalpr_cloud/image_processing.py#L124
  221. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/input_datetime/__init__.py#L88
  222. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/tasmota/config_flow.py#L70
  223. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/tasmota/discovery.py#L244
  224. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/auth/indieauth.py#L127
  225. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zhong_hong/climate.py#L244
  226. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zhong_hong/climate.py#L248
  227. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/hitron_coda/device_tracker.py#L72
  228. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/atome/sensor.py#L149
  229. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/voip/voip.py#L335
  230. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/venstar/climate.py#L318
  231. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/script/config.py#L147
  232. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/rfxtrx/__init__.py#L205
  233. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/recorder/core.py#L893
  234. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/recorder/core.py#L1202
  235. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/recorder/core.py#L1291
  236. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/recorder/core.py#L1391
  237. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/recorder/table_managers/event_data.py#L57
  238. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/recorder/table_managers/states_meta.py#L38
  239. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/recorder/table_managers/statistics_meta.py#L195
  240. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/recorder/table_managers/state_attributes.py#L74
  241. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/recorder/table_managers/event_types.py#L40
  242. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/shelly/coordinator.py#L405
  243. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/actiontec/device_tracker.py#L57
  244. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/actiontec/device_tracker.py#L88
  245. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/actiontec/device_tracker.py#L90
  246. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/actiontec/device_tracker.py#L95
  247. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/skybeacon/sensor.py#L170
  248. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/remember_the_milk/__init__.py#L253
  249. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/synology_srm/device_tracker.py#L106
  250. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/imap_email_content/sensor.py#L127
  251. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/imap_email_content/sensor.py#L148
  252. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/imap_email_content/sensor.py#L169
  253. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telnet/switch.py#L151
  254. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/telnet/switch.py#L158
  255. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/thomson/device_tracker.py#L64
  256. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/thomson/device_tracker.py#L99
  257. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/thomson/device_tracker.py#L101
  258. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/thomson/device_tracker.py#L103
  259. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/cisco_ios/device_tracker.py#L62
  260. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/logentries/__init__.py#L50
  261. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/picotts/tts.py#L55
  262. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/elkm1/light.py#L28
  263. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/elkm1/scene.py#L26
  264. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/elkm1/sensor.py#L48
  265. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/elkm1/sensor.py#L49
  266. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/elkm1/sensor.py#L50
  267. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/elkm1/sensor.py#L51
  268. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/elkm1/sensor.py#L52
  269. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/elkm1/alarm_control_panel.py#L71
  270. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/elkm1/switch.py#L26
  271. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/elkm1/climate.py#L68
  272. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/lock.py#L136
  273. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/lock.py#L144
  274. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/lock.py#L178
  275. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/lock.py#L184
  276. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/lock.py#L190
  277. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/lock.py#L196
  278. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L171
  279. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L307
  280. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L314
  281. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L328
  282. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L346
  283. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L367
  284. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L372
  285. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L384
  286. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L395
  287. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L443
  288. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L476
  289. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L574
  290. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L596
  291. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L613
  292. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L624
  293. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L766
  294. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L802
  295. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L818
  296. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L868
  297. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L974
  298. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L981
  299. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L990
  300. function-return-not-assigned:
    Function returned value which is never used
    https://github.com/home-assistant/core/blob/b5f582eeccbdb029017280673733d001ee490e45/homeassistant/components/zha/light.py#L999
  301. function-return-not-assigned:
    *Function returned val...

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

This comment was generated for commit 900b7a4

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Thank you for your work on this. I think it need to take #7935 (comment) into account, seeing the truncated primer result, there's indeed too much false positive otherwise.

@jacobtylerwalls jacobtylerwalls added the Waiting on author Indicate that maintainers are waiting for a message of the author label Aug 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2023

This PR needs take over because because it has been open 8 weeks with no activity.

@github-actions github-actions bot added the Needs take over 🛎️ Orignal implementer went away but the code could be salvaged. label Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component Needs take over 🛎️ Orignal implementer went away but the code could be salvaged. Waiting on author Indicate that maintainers are waiting for a message of the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False negative expression-not-assigned on fonction calls that return values
3 participants