mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Fix implicit-return in enigma2 tests (#122790)
This commit is contained in:
parent
8de7a2e3c7
commit
6ba6334512
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user