Use core constants for openalpr_cloud (#49755)
This commit is contained in:
parent
978d706b08
commit
157dd273da
1 changed files with 1 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue