Use core constants for openalpr_cloud (#49755)

This commit is contained in:
tkdrob 2021-04-27 10:05:14 -04:00 committed by GitHub
parent 978d706b08
commit 157dd273da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ from homeassistant.components.image_processing import (
from homeassistant.components.openalpr_local.image_processing import (
ImageProcessingAlprEntity,
)
from homeassistant.const import CONF_API_KEY, HTTP_OK
from homeassistant.const import CONF_API_KEY, CONF_REGION, HTTP_OK
from homeassistant.core import split_entity_id
from homeassistant.helpers.aiohttp_client import async_get_clientsession
import homeassistant.helpers.config_validation as cv
@ -41,8 +41,6 @@ OPENALPR_REGIONS = [
"vn2",
]
CONF_REGION = "region"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{
vol.Required(CONF_API_KEY): cv.string,