mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Deprecate Wink integration (#54496)
This commit is contained in:
@@ -111,6 +111,8 @@ CHIME_TONES = TONES + ["inactive"]
|
||||
AUTO_SHUTOFF_TIMES = [None, -1, 30, 60, 120]
|
||||
|
||||
CONFIG_SCHEMA = vol.Schema(
|
||||
vol.All(
|
||||
cv.deprecated(DOMAIN),
|
||||
{
|
||||
DOMAIN: vol.Schema(
|
||||
{
|
||||
@@ -128,8 +130,9 @@ CONFIG_SCHEMA = vol.Schema(
|
||||
): cv.string,
|
||||
vol.Optional(CONF_LOCAL_CONTROL, default=False): cv.boolean,
|
||||
}
|
||||
)
|
||||
),
|
||||
},
|
||||
),
|
||||
extra=vol.ALLOW_EXTRA,
|
||||
)
|
||||
|
||||
@@ -282,6 +285,10 @@ def _request_oauth_completion(hass, config):
|
||||
|
||||
def setup(hass, config): # noqa: C901
|
||||
"""Set up the Wink component."""
|
||||
_LOGGER.warning(
|
||||
"The Wink integration has been deprecated and is pending removal in "
|
||||
"Home Assistant Core 2021.11"
|
||||
)
|
||||
|
||||
if hass.data.get(DOMAIN) is None:
|
||||
hass.data[DOMAIN] = {
|
||||
|
Reference in New Issue
Block a user