From eb5a321a9f71f10e7cbffa5e784c9c1e4b2c2d96 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 21 Dec 2021 12:46:10 +0100 Subject: [PATCH] Mark removed config schemas as removed (#61014) --- homeassistant/components/abode/__init__.py | 2 +- homeassistant/components/airvisual/__init__.py | 2 +- homeassistant/components/ambient_station/__init__.py | 2 +- homeassistant/components/arcam_fmj/__init__.py | 2 +- homeassistant/components/cast/__init__.py | 3 +-- homeassistant/components/cloudflare/__init__.py | 2 +- homeassistant/components/daikin/__init__.py | 2 +- homeassistant/components/directv/__init__.py | 2 +- homeassistant/components/doorbird/__init__.py | 2 +- homeassistant/components/flunearyou/__init__.py | 2 +- homeassistant/components/hunterdouglas_powerview/__init__.py | 2 +- homeassistant/components/local_ip/__init__.py | 2 +- homeassistant/components/nexia/__init__.py | 2 +- homeassistant/components/notion/__init__.py | 2 +- homeassistant/components/nuheat/__init__.py | 2 +- homeassistant/components/powerwall/__init__.py | 2 +- homeassistant/components/rachio/__init__.py | 2 +- homeassistant/components/rainmachine/__init__.py | 2 +- homeassistant/components/roku/__init__.py | 2 +- homeassistant/components/sentry/__init__.py | 2 +- homeassistant/components/simplisafe/__init__.py | 2 +- homeassistant/components/solaredge/__init__.py | 2 +- homeassistant/components/somfy_mylink/__init__.py | 2 +- homeassistant/components/synology_dsm/__init__.py | 2 +- homeassistant/components/tado/__init__.py | 2 +- homeassistant/components/tibber/__init__.py | 2 +- homeassistant/components/totalconnect/__init__.py | 2 +- homeassistant/components/vesync/__init__.py | 2 +- 28 files changed, 28 insertions(+), 29 deletions(-) diff --git a/homeassistant/components/abode/__init__.py b/homeassistant/components/abode/__init__.py index 0d6ab95a318..93b760f5f68 100644 --- a/homeassistant/components/abode/__init__.py +++ b/homeassistant/components/abode/__init__.py @@ -42,7 +42,7 @@ ATTR_APP_TYPE = "app_type" ATTR_EVENT_BY = "event_by" ATTR_VALUE = "value" -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) CHANGE_SETTING_SCHEMA = vol.Schema( {vol.Required(ATTR_SETTING): cv.string, vol.Required(ATTR_VALUE): cv.string} diff --git a/homeassistant/components/airvisual/__init__.py b/homeassistant/components/airvisual/__init__.py index 876cb270e99..f65bb7b14c7 100644 --- a/homeassistant/components/airvisual/__init__.py +++ b/homeassistant/components/airvisual/__init__.py @@ -57,7 +57,7 @@ PLATFORMS = [Platform.SENSOR] DEFAULT_ATTRIBUTION = "Data provided by AirVisual" DEFAULT_NODE_PRO_UPDATE_INTERVAL = timedelta(minutes=1) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) @callback diff --git a/homeassistant/components/ambient_station/__init__.py b/homeassistant/components/ambient_station/__init__.py index 6406b5a10df..fb4a865a72e 100644 --- a/homeassistant/components/ambient_station/__init__.py +++ b/homeassistant/components/ambient_station/__init__.py @@ -41,7 +41,7 @@ DATA_CONFIG = "config" DEFAULT_SOCKET_MIN_RETRY = 15 -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) @callback diff --git a/homeassistant/components/arcam_fmj/__init__.py b/homeassistant/components/arcam_fmj/__init__.py index 125dd7af6ae..3cb4c83211f 100644 --- a/homeassistant/components/arcam_fmj/__init__.py +++ b/homeassistant/components/arcam_fmj/__init__.py @@ -25,7 +25,7 @@ from .const import ( _LOGGER = logging.getLogger(__name__) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) PLATFORMS = [Platform.MEDIA_PLAYER] diff --git a/homeassistant/components/cast/__init__.py b/homeassistant/components/cast/__init__.py index 4401553869f..b0dffcb2e9a 100644 --- a/homeassistant/components/cast/__init__.py +++ b/homeassistant/components/cast/__init__.py @@ -12,8 +12,7 @@ from . import home_assistant_cast from .const import DOMAIN from .media_player import ENTITY_SCHEMA -# Deprecated from 2021.4, remove in 2021.6 -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/cloudflare/__init__.py b/homeassistant/components/cloudflare/__init__.py index 2d0d3145ead..dc0782aa9c0 100644 --- a/homeassistant/components/cloudflare/__init__.py +++ b/homeassistant/components/cloudflare/__init__.py @@ -23,7 +23,7 @@ from .const import CONF_RECORDS, DEFAULT_UPDATE_INTERVAL, DOMAIN, SERVICE_UPDATE _LOGGER = logging.getLogger(__name__) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: diff --git a/homeassistant/components/daikin/__init__.py b/homeassistant/components/daikin/__init__.py index f588f66761c..95189774a81 100644 --- a/homeassistant/components/daikin/__init__.py +++ b/homeassistant/components/daikin/__init__.py @@ -25,7 +25,7 @@ MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=60) PLATFORMS = [Platform.CLIMATE, Platform.SENSOR, Platform.SWITCH] -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: diff --git a/homeassistant/components/directv/__init__.py b/homeassistant/components/directv/__init__.py index 55961869f79..1068ec4ccc4 100644 --- a/homeassistant/components/directv/__init__.py +++ b/homeassistant/components/directv/__init__.py @@ -14,7 +14,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession from .const import DOMAIN -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) PLATFORMS = [Platform.MEDIA_PLAYER, Platform.REMOTE] SCAN_INTERVAL = timedelta(seconds=30) diff --git a/homeassistant/components/doorbird/__init__.py b/homeassistant/components/doorbird/__init__.py index 7497304f9e1..70198c2f2d5 100644 --- a/homeassistant/components/doorbird/__init__.py +++ b/homeassistant/components/doorbird/__init__.py @@ -55,7 +55,7 @@ DEVICE_SCHEMA = vol.Schema( } ) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: diff --git a/homeassistant/components/flunearyou/__init__.py b/homeassistant/components/flunearyou/__init__.py index 1c98f4dceae..bb07e9ccc73 100644 --- a/homeassistant/components/flunearyou/__init__.py +++ b/homeassistant/components/flunearyou/__init__.py @@ -19,7 +19,7 @@ from .const import CATEGORY_CDC_REPORT, CATEGORY_USER_REPORT, DOMAIN, LOGGER DEFAULT_UPDATE_INTERVAL = timedelta(minutes=30) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) PLATFORMS = [Platform.SENSOR] diff --git a/homeassistant/components/hunterdouglas_powerview/__init__.py b/homeassistant/components/hunterdouglas_powerview/__init__.py index 304d7e13cc1..17dd580f5cc 100644 --- a/homeassistant/components/hunterdouglas_powerview/__init__.py +++ b/homeassistant/components/hunterdouglas_powerview/__init__.py @@ -53,7 +53,7 @@ from .const import ( PARALLEL_UPDATES = 1 -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) PLATFORMS = [Platform.COVER, Platform.SCENE, Platform.SENSOR] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/local_ip/__init__.py b/homeassistant/components/local_ip/__init__.py index e97e5da7d49..cc122187f47 100644 --- a/homeassistant/components/local_ip/__init__.py +++ b/homeassistant/components/local_ip/__init__.py @@ -5,7 +5,7 @@ import homeassistant.helpers.config_validation as cv from .const import DOMAIN, PLATFORMS -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: diff --git a/homeassistant/components/nexia/__init__.py b/homeassistant/components/nexia/__init__.py index 827bff50d34..634f69b49d3 100644 --- a/homeassistant/components/nexia/__init__.py +++ b/homeassistant/components/nexia/__init__.py @@ -18,7 +18,7 @@ from .util import is_invalid_auth_code _LOGGER = logging.getLogger(__name__) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: diff --git a/homeassistant/components/notion/__init__.py b/homeassistant/components/notion/__init__.py index 0e841e12bbe..e8bd2c725d5 100644 --- a/homeassistant/components/notion/__init__.py +++ b/homeassistant/components/notion/__init__.py @@ -34,7 +34,7 @@ ATTR_SYSTEM_NAME = "system_name" DEFAULT_ATTRIBUTION = "Data provided by Notion" DEFAULT_SCAN_INTERVAL = timedelta(minutes=1) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: diff --git a/homeassistant/components/nuheat/__init__.py b/homeassistant/components/nuheat/__init__.py index 60dc0a5d9e2..06796e836b4 100644 --- a/homeassistant/components/nuheat/__init__.py +++ b/homeassistant/components/nuheat/__init__.py @@ -17,7 +17,7 @@ from .const import CONF_SERIAL_NUMBER, DOMAIN, PLATFORMS _LOGGER = logging.getLogger(__name__) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) def _get_thermostat(api, serial_number): diff --git a/homeassistant/components/powerwall/__init__.py b/homeassistant/components/powerwall/__init__.py index fa7b33ff2ad..c86fa71f987 100644 --- a/homeassistant/components/powerwall/__init__.py +++ b/homeassistant/components/powerwall/__init__.py @@ -36,7 +36,7 @@ from .const import ( UPDATE_INTERVAL, ) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) PLATFORMS = [Platform.BINARY_SENSOR, Platform.SENSOR] diff --git a/homeassistant/components/rachio/__init__.py b/homeassistant/components/rachio/__init__.py index 134a10795f2..431e3bffb64 100644 --- a/homeassistant/components/rachio/__init__.py +++ b/homeassistant/components/rachio/__init__.py @@ -22,7 +22,7 @@ _LOGGER = logging.getLogger(__name__) PLATFORMS = [Platform.SWITCH, Platform.BINARY_SENSOR] -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: diff --git a/homeassistant/components/rainmachine/__init__.py b/homeassistant/components/rainmachine/__init__.py index 5ffdc7951db..1123d3da281 100644 --- a/homeassistant/components/rainmachine/__init__.py +++ b/homeassistant/components/rainmachine/__init__.py @@ -55,7 +55,7 @@ DEFAULT_ICON = "mdi:water" DEFAULT_SSL = True DEFAULT_UPDATE_INTERVAL = timedelta(seconds=15) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) PLATFORMS = [Platform.BINARY_SENSOR, Platform.SENSOR, Platform.SWITCH] diff --git a/homeassistant/components/roku/__init__.py b/homeassistant/components/roku/__init__.py index b145864b726..2c59c998b65 100644 --- a/homeassistant/components/roku/__init__.py +++ b/homeassistant/components/roku/__init__.py @@ -13,7 +13,7 @@ from homeassistant.helpers import config_validation as cv from .const import DOMAIN from .coordinator import RokuDataUpdateCoordinator -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) PLATFORMS = [Platform.MEDIA_PLAYER, Platform.REMOTE] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sentry/__init__.py b/homeassistant/components/sentry/__init__.py index 350ccfa5b8d..c23b357066b 100644 --- a/homeassistant/components/sentry/__init__.py +++ b/homeassistant/components/sentry/__init__.py @@ -36,7 +36,7 @@ from .const import ( ENTITY_COMPONENTS, ) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) LOGGER_INFO_REGEX = re.compile(r"^(\w+)\.?(\w+)?\.?(\w+)?\.?(\w+)?(?:\..*)?$") diff --git a/homeassistant/components/simplisafe/__init__.py b/homeassistant/components/simplisafe/__init__.py index b188b7309d8..a8cdb853749 100644 --- a/homeassistant/components/simplisafe/__init__.py +++ b/homeassistant/components/simplisafe/__init__.py @@ -243,7 +243,7 @@ WEBSOCKET_EVENTS_TO_FIRE_HASS_EVENT = [ EVENT_USER_INITIATED_TEST, ] -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) @callback diff --git a/homeassistant/components/solaredge/__init__.py b/homeassistant/components/solaredge/__init__.py index 8b83891f4e3..148e684589f 100644 --- a/homeassistant/components/solaredge/__init__.py +++ b/homeassistant/components/solaredge/__init__.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv from .const import CONF_SITE_ID, DATA_API_CLIENT, DOMAIN, LOGGER -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) PLATFORMS = [Platform.SENSOR] diff --git a/homeassistant/components/somfy_mylink/__init__.py b/homeassistant/components/somfy_mylink/__init__.py index bf47617a302..fd036daf385 100644 --- a/homeassistant/components/somfy_mylink/__init__.py +++ b/homeassistant/components/somfy_mylink/__init__.py @@ -16,7 +16,7 @@ UNDO_UPDATE_LISTENER = "undo_update_listener" _LOGGER = logging.getLogger(__name__) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: diff --git a/homeassistant/components/synology_dsm/__init__.py b/homeassistant/components/synology_dsm/__init__.py index e1a9076c947..6e90233b375 100644 --- a/homeassistant/components/synology_dsm/__init__.py +++ b/homeassistant/components/synology_dsm/__init__.py @@ -75,7 +75,7 @@ from .const import ( SynologyDSMEntityDescription, ) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) ATTRIBUTION = "Data provided by Synology" diff --git a/homeassistant/components/tado/__init__.py b/homeassistant/components/tado/__init__.py index 6858f49799a..f89ad5feedc 100644 --- a/homeassistant/components/tado/__init__.py +++ b/homeassistant/components/tado/__init__.py @@ -41,7 +41,7 @@ PLATFORMS = [ MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=4) SCAN_INTERVAL = timedelta(minutes=5) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: diff --git a/homeassistant/components/tibber/__init__.py b/homeassistant/components/tibber/__init__.py index 3b71a40b093..57d95855cca 100644 --- a/homeassistant/components/tibber/__init__.py +++ b/homeassistant/components/tibber/__init__.py @@ -21,7 +21,7 @@ from .const import DATA_HASS_CONFIG, DOMAIN PLATFORMS = [Platform.SENSOR] -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/totalconnect/__init__.py b/homeassistant/components/totalconnect/__init__.py index 679f7afc3d3..05566708f22 100644 --- a/homeassistant/components/totalconnect/__init__.py +++ b/homeassistant/components/totalconnect/__init__.py @@ -17,7 +17,7 @@ from .const import CONF_USERCODES, DOMAIN PLATFORMS = [Platform.ALARM_CONTROL_PANEL, Platform.BINARY_SENSOR] -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) SCAN_INTERVAL = timedelta(seconds=30) _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vesync/__init__.py b/homeassistant/components/vesync/__init__.py index 95370b01409..e62436fce27 100644 --- a/homeassistant/components/vesync/__init__.py +++ b/homeassistant/components/vesync/__init__.py @@ -23,7 +23,7 @@ PLATFORMS = ["switch", "fan", "light"] _LOGGER = logging.getLogger(__name__) -CONFIG_SCHEMA = cv.deprecated(DOMAIN) +CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) async def async_setup_entry(hass, config_entry):