diff --git a/tests/common.py b/tests/common.py
index 9faf7e107122340e1c88735ce280126cd77e4450..3f1dea4b720851c4da383e70cd8773d7f89947e8 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -1680,7 +1680,7 @@ def import_and_test_deprecated_alias(
 def help_test_all(module: ModuleType) -> None:
     """Test module.__all__ is correctly set."""
     assert set(module.__all__) == {
-        itm for itm in module.__dir__() if not itm.startswith("_")
+        itm for itm in dir(module) if not itm.startswith("_")
     }
 
 
diff --git a/tests/components/google_assistant_sdk/test_init.py b/tests/components/google_assistant_sdk/test_init.py
index 11b3fbaa03fa34bfee6ee5f68c99c6311ecf4690..f986497ed29f3bf24870b11055d2ed17656a85ae 100644
--- a/tests/components/google_assistant_sdk/test_init.py
+++ b/tests/components/google_assistant_sdk/test_init.py
@@ -149,6 +149,7 @@ async def test_send_text_command(
     mock_text_assistant.assert_called_once_with(
         ExpectedCredentials(), expected_language_code, audio_out=False
     )
+    # pylint:disable-next=unnecessary-dunder-call
     mock_text_assistant.assert_has_calls([call().__enter__().assist(command)])
 
 
diff --git a/tests/components/google_assistant_sdk/test_notify.py b/tests/components/google_assistant_sdk/test_notify.py
index 0ffdc3c56606872f8bd7b70ae95f9c7cbcc1d080..266846b17e1360922363870329ae019ce59be4be 100644
--- a/tests/components/google_assistant_sdk/test_notify.py
+++ b/tests/components/google_assistant_sdk/test_notify.py
@@ -50,6 +50,7 @@ async def test_broadcast_no_targets(
     mock_text_assistant.assert_called_once_with(
         ExpectedCredentials(), language_code, audio_out=False
     )
+    # pylint:disable-next=unnecessary-dunder-call
     mock_text_assistant.assert_has_calls([call().__enter__().assist(expected_command)])
 
 
diff --git a/tests/components/usb/test_init.py b/tests/components/usb/test_init.py
index ce7484a811c42e6ef71488ecc2a53422e790bd6d..effc63bf8aa64daaaeba7875ecda9e203a2298f0 100644
--- a/tests/components/usb/test_init.py
+++ b/tests/components/usb/test_init.py
@@ -108,6 +108,7 @@ async def test_observer_discovery(
     hass.bus.async_fire(EVENT_HOMEASSISTANT_STOP)
     await hass.async_block_till_done()
 
+    # pylint:disable-next=unnecessary-dunder-call
     assert mock_observer.mock_calls == [call.start(), call.__bool__(), call.stop()]