mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Use content type json constant (#40312)
This commit is contained in:
@@ -4,6 +4,7 @@ import time
|
||||
|
||||
from homeassistant import config_entries, setup
|
||||
from homeassistant.components.flo.const import DOMAIN
|
||||
from homeassistant.const import CONTENT_TYPE_JSON
|
||||
|
||||
from .common import TEST_EMAIL_ADDRESS, TEST_PASSWORD, TEST_TOKEN, TEST_USER_ID
|
||||
|
||||
@@ -53,7 +54,7 @@ async def test_form_cannot_connect(hass, aioclient_mock):
|
||||
"timeNow": now,
|
||||
}
|
||||
),
|
||||
headers={"Content-Type": "application/json"},
|
||||
headers={"Content-Type": CONTENT_TYPE_JSON},
|
||||
status=400,
|
||||
)
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
|
||||
Reference in New Issue
Block a user