diff --git a/tests/components/enigma2/conftest.py b/tests/components/enigma2/conftest.py index f5436183559..6c024ebf66a 100644 --- a/tests/components/enigma2/conftest.py +++ b/tests/components/enigma2/conftest.py @@ -72,7 +72,7 @@ class MockDevice: """Initialize the mock Enigma2 device.""" self.status = OpenWebIfStatus(currservice=OpenWebIfServiceEvent()) - async def _call_api(self, url: str) -> dict: + async def _call_api(self, url: str) -> dict | None: if url.endswith("/api/about"): return { "info": { @@ -85,6 +85,7 @@ class MockDevice: "brand": "Enigma2", } } + return None def get_version(self) -> str | None: """Return the version."""