Fix implicit-return in enigma2 tests (#122790)

This commit is contained in:
epenet 2024-07-29 21:57:35 +02:00 committed by GitHub
parent 8de7a2e3c7
commit 6ba6334512
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,7 @@ class MockDevice:
"""Initialize the mock Enigma2 device.""" """Initialize the mock Enigma2 device."""
self.status = OpenWebIfStatus(currservice=OpenWebIfServiceEvent()) 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"): if url.endswith("/api/about"):
return { return {
"info": { "info": {
@ -85,6 +85,7 @@ class MockDevice:
"brand": "Enigma2", "brand": "Enigma2",
} }
} }
return None
def get_version(self) -> str | None: def get_version(self) -> str | None:
"""Return the version.""" """Return the version."""