diff --git a/homeassistant/components/ping/helpers.py b/homeassistant/components/ping/helpers.py index 8000cbcddde0..ec77fe1b189f 100644 --- a/homeassistant/components/ping/helpers.py +++ b/homeassistant/components/ping/helpers.py @@ -162,7 +162,7 @@ class PingDataSubProcess(PingData): if pinger: with suppress(TypeError, ProcessLookupError): - await pinger.kill() # type: ignore[func-returns-value] + pinger.kill() del pinger return None diff --git a/tests/components/ping/test_helpers.py b/tests/components/ping/test_helpers.py index 5a90c6b75b2a..7c0709c87379 100644 --- a/tests/components/ping/test_helpers.py +++ b/tests/components/ping/test_helpers.py @@ -22,7 +22,7 @@ class MockAsyncSubprocess: """Fails immediately with a timeout.""" raise TimeoutError - async def kill(self) -> None: + def kill(self) -> None: """Raise preset exception when called.""" raise self.killsig