mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 10:29:27 +00:00
Use HTTP_OK constant (#33798)
* Use http ok constant * Remove incorrect use * Run isort * Fix pylint by adding missing imports * Fix pylint by fixing one import
This commit is contained in:
@@ -12,6 +12,7 @@ from homeassistant.components.alexa import (
|
||||
smart_home as alexa_sh,
|
||||
)
|
||||
from homeassistant.components.google_assistant import const as gc, smart_home as ga
|
||||
from homeassistant.const import HTTP_OK
|
||||
from homeassistant.core import Context, callback
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
@@ -174,7 +175,7 @@ class CloudClient(Interface):
|
||||
break
|
||||
|
||||
if found is None:
|
||||
return {"status": 200}
|
||||
return {"status": HTTP_OK}
|
||||
|
||||
request = MockRequest(
|
||||
content=payload["body"].encode("utf-8"),
|
||||
|
||||
Reference in New Issue
Block a user