Fix implicit-return in enigma2 tests (#122790)

pull/122808/head
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
1 changed files with 2 additions and 1 deletions

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