mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-13 04:06:33 +00:00
Fix lint v2
This commit is contained in:
parent
878eb40258
commit
1ad196424f
@ -68,9 +68,9 @@ def api_return_error(message=None):
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
def api_return_ok(data=dict()):
|
def api_return_ok(data=None):
|
||||||
"""Return a API ok answer."""
|
"""Return a API ok answer."""
|
||||||
return web.json_response({
|
return web.json_response({
|
||||||
JSON_RESULT: RESULT_OK,
|
JSON_RESULT: RESULT_OK,
|
||||||
JSON_DATA: data,
|
JSON_DATA: data or {},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user