1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Mark config flow fields as required (#51898)

* flo

* goalzero

* mutesync

* ring

* roon

* risco

* Ruckus Unleashed

* Scaffold template
This commit is contained in:
Milan Meulemans
2021-06-15 19:21:30 +02:00
committed by GitHub
parent 3488b78365
commit 63e20f2ced
8 changed files with 29 additions and 9 deletions

View File

@@ -16,7 +16,13 @@ from .const import DOMAIN
_LOGGER = logging.getLogger(__name__)
# TODO adjust the data schema to the data that you need
STEP_USER_DATA_SCHEMA = vol.Schema({"host": str, "username": str, "password": str})
STEP_USER_DATA_SCHEMA = vol.Schema(
{
vol.Required("host"): str,
vol.Required("username"): str,
vol.Required("password"): str,
}
)
class PlaceholderHub: