mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Mark xbox configuration.yaml as deprecated after app creds import (#71908)
This commit is contained in:
parent
2613c865f7
commit
a32321aa9f
@ -38,14 +38,17 @@ from .const import DOMAIN
|
|||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema(
|
CONFIG_SCHEMA = vol.Schema(
|
||||||
{
|
vol.All(
|
||||||
DOMAIN: vol.Schema(
|
cv.deprecated(DOMAIN),
|
||||||
{
|
{
|
||||||
vol.Required(CONF_CLIENT_ID): cv.string,
|
DOMAIN: vol.Schema(
|
||||||
vol.Required(CONF_CLIENT_SECRET): cv.string,
|
{
|
||||||
}
|
vol.Required(CONF_CLIENT_ID): cv.string,
|
||||||
)
|
vol.Required(CONF_CLIENT_SECRET): cv.string,
|
||||||
},
|
}
|
||||||
|
)
|
||||||
|
},
|
||||||
|
),
|
||||||
extra=vol.ALLOW_EXTRA,
|
extra=vol.ALLOW_EXTRA,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -71,6 +74,13 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
config[DOMAIN][CONF_CLIENT_ID], config[DOMAIN][CONF_CLIENT_SECRET]
|
config[DOMAIN][CONF_CLIENT_ID], config[DOMAIN][CONF_CLIENT_SECRET]
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
_LOGGER.warning(
|
||||||
|
"Configuration of Xbox integration in YAML is deprecated and "
|
||||||
|
"will be removed in a future release; Your existing configuration "
|
||||||
|
"(including OAuth Application Credentials) has been imported into "
|
||||||
|
"the UI automatically and can be safely removed from your "
|
||||||
|
"configuration.yaml file"
|
||||||
|
)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user