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

Add OAuth2 config flow scaffold (#28220)

* Add OAuth2 scaffold

* Generate integration if non-existing domain specified

* Update URL
This commit is contained in:
Paulus Schoutsen
2019-10-29 20:34:03 -07:00
committed by GitHub
parent e700384cce
commit 24c29f9227
13 changed files with 567 additions and 209 deletions

View File

@@ -1,12 +1,14 @@
"""The NEW_NAME integration."""
import voluptuous as vol
from homeassistant.core import HomeAssistant
from .const import DOMAIN
CONFIG_SCHEMA = vol.Schema({vol.Optional(DOMAIN): {}})
CONFIG_SCHEMA = vol.Schema({vol.Optional(DOMAIN): {}}, extra=vol.ALLOW_EXTRA)
async def async_setup(hass, config):
async def async_setup(hass: HomeAssistant, config: dict):
"""Set up the NEW_NAME integration."""
return True