mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Tweak scaffold script (#82705)
This commit is contained in:
parent
35dbc3151a
commit
7b5c80720a
@ -6,6 +6,7 @@ from typing import Any, cast
|
|||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
|
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
|
||||||
from homeassistant.const import CONF_ENTITY_ID
|
from homeassistant.const import CONF_ENTITY_ID
|
||||||
from homeassistant.helpers import selector
|
from homeassistant.helpers import selector
|
||||||
from homeassistant.helpers.schema_config_entry_flow import (
|
from homeassistant.helpers.schema_config_entry_flow import (
|
||||||
@ -19,7 +20,7 @@ from .const import DOMAIN
|
|||||||
OPTIONS_SCHEMA = vol.Schema(
|
OPTIONS_SCHEMA = vol.Schema(
|
||||||
{
|
{
|
||||||
vol.Required(CONF_ENTITY_ID): selector.EntitySelector(
|
vol.Required(CONF_ENTITY_ID): selector.EntitySelector(
|
||||||
selector.EntitySelectorConfig(domain="sensor")
|
selector.EntitySelectorConfig(domain=SENSOR_DOMAIN)
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user