From 633e7e90ac0b1c55b91ed8831aad95e04fd2157b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 22 Feb 2022 14:46:46 +0100 Subject: [PATCH] Deprecate the updater integration (#67038) --- .../components/default_config/manifest.json | 3 +-- homeassistant/components/updater/__init__.py | 14 ++++---------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/homeassistant/components/default_config/manifest.json b/homeassistant/components/default_config/manifest.json index 88f86034aea..9a65af96852 100644 --- a/homeassistant/components/default_config/manifest.json +++ b/homeassistant/components/default_config/manifest.json @@ -31,11 +31,10 @@ "tag", "timer", "usb", - "updater", "webhook", "zeroconf", "zone" ], "codeowners": [], "quality_scale": "internal" -} +} \ No newline at end of file diff --git a/homeassistant/components/updater/__init__.py b/homeassistant/components/updater/__init__.py index 6a6264304c9..4f88b5d1369 100644 --- a/homeassistant/components/updater/__init__.py +++ b/homeassistant/components/updater/__init__.py @@ -58,16 +58,10 @@ class Updater: async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: """Set up the updater component.""" - conf = config.get(DOMAIN, {}) - - for option in (CONF_COMPONENT_REPORTING, CONF_REPORTING): - if option in conf: - _LOGGER.warning( - "Analytics reporting with the option '%s' " - "is deprecated and you should remove that from your configuration. " - "The analytics part of this integration has moved to the new 'analytics' integration", - option, - ) + _LOGGER.warning( + "The updater integration has been deprecated and will be removed in 2022.5, " + "please remove it from your configuration" + ) async def check_new_version() -> Updater: """Check if a new version is available and report if one is."""