Add some more VolDictType annotations (#120610)
This commit is contained in:
parent
fcfb580f0c
commit
6bceb8ec48
12 changed files with 43 additions and 33 deletions
|
@ -12,6 +12,7 @@ from homeassistant.config_entries import ConfigEntry, ConfigFlow, OptionsFlow
|
|||
from homeassistant.const import CONF_PORT
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
from homeassistant.helpers.typing import VolDictType
|
||||
|
||||
from .const import (
|
||||
CONF_SOURCE_1,
|
||||
|
@ -35,7 +36,7 @@ SOURCES = [
|
|||
CONF_SOURCE_6,
|
||||
]
|
||||
|
||||
OPTIONS_FOR_DATA = {vol.Optional(source): str for source in SOURCES}
|
||||
OPTIONS_FOR_DATA: VolDictType = {vol.Optional(source): str for source in SOURCES}
|
||||
|
||||
DATA_SCHEMA = vol.Schema({vol.Required(CONF_PORT): str, **OPTIONS_FOR_DATA})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue