Add some more VolDictType annotations (#120610)

This commit is contained in:
Marc Mueller 2024-06-26 22:44:43 +02:00 committed by GitHub
parent fcfb580f0c
commit 6bceb8ec48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 43 additions and 33 deletions

View file

@ -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})