Remove redundant aiohttp response status=200 kwargs (#56417)
* Remove redundant aiohttp response status=200 kwargs * Remove some more in h.c.auth * Restore explicit status=HTTP_OK for auth and webhook per review request
This commit is contained in:
parent
26e9590927
commit
1aa7c87151
10 changed files with 15 additions and 29 deletions
|
@ -10,7 +10,6 @@ from homeassistant.const import (
|
|||
ATTR_LATITUDE,
|
||||
ATTR_LONGITUDE,
|
||||
CONF_WEBHOOK_ID,
|
||||
HTTP_OK,
|
||||
HTTP_UNPROCESSABLE_ENTITY,
|
||||
)
|
||||
from homeassistant.helpers import config_entry_flow
|
||||
|
@ -91,7 +90,7 @@ async def handle_webhook(hass, webhook_id, request):
|
|||
attrs,
|
||||
)
|
||||
|
||||
return web.Response(text=f"Setting location for {device}", status=HTTP_OK)
|
||||
return web.Response(text=f"Setting location for {device}")
|
||||
|
||||
|
||||
async def async_setup_entry(hass, entry):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue