Deprecate the updater integration (#67038)

This commit is contained in:
Joakim Sørensen 2022-02-22 14:46:46 +01:00 committed by GitHub
parent 995f4fbfda
commit 633e7e90ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 12 deletions

View File

@ -31,7 +31,6 @@
"tag", "tag",
"timer", "timer",
"usb", "usb",
"updater",
"webhook", "webhook",
"zeroconf", "zeroconf",
"zone" "zone"

View File

@ -58,15 +58,9 @@ class Updater:
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the updater component.""" """Set up the updater component."""
conf = config.get(DOMAIN, {})
for option in (CONF_COMPONENT_REPORTING, CONF_REPORTING):
if option in conf:
_LOGGER.warning( _LOGGER.warning(
"Analytics reporting with the option '%s' " "The updater integration has been deprecated and will be removed in 2022.5, "
"is deprecated and you should remove that from your configuration. " "please remove it from your configuration"
"The analytics part of this integration has moved to the new 'analytics' integration",
option,
) )
async def check_new_version() -> Updater: async def check_new_version() -> Updater: