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,11 +31,10 @@
"tag",
"timer",
"usb",
"updater",
"webhook",
"zeroconf",
"zone"
],
"codeowners": [],
"quality_scale": "internal"
}
}

View file

@ -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."""