mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Use core constants for openalpr_cloud (#49755)
This commit is contained in:
parent
978d706b08
commit
157dd273da
@ -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…
x
Reference in New Issue
Block a user