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

View File

@@ -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."""