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:
Ville Skyttä 2021-09-21 20:51:12 +03:00 committed by GitHub
parent 26e9590927
commit 1aa7c87151
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 15 additions and 29 deletions

View file

@ -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):