mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Fix implicit-return in websocket_api tests (#122779)
This commit is contained in:
@@ -77,13 +77,15 @@ async def test_exception_handling(
|
||||
refresh_token = Mock()
|
||||
hass.data[DOMAIN] = {}
|
||||
|
||||
def get_extra_info(key: str) -> Any:
|
||||
def get_extra_info(key: str) -> Any | None:
|
||||
if key == "sslcontext":
|
||||
return True
|
||||
|
||||
if key == "peername":
|
||||
return ("127.0.0.42", 8123)
|
||||
|
||||
return None
|
||||
|
||||
mocked_transport = Mock()
|
||||
mocked_transport.get_extra_info = get_extra_info
|
||||
mocked_request = make_mocked_request(
|
||||
|
Reference in New Issue
Block a user