mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Deprecate the updater integration (#67038)
This commit is contained in:
parent
995f4fbfda
commit
633e7e90ac
@ -31,7 +31,6 @@
|
|||||||
"tag",
|
"tag",
|
||||||
"timer",
|
"timer",
|
||||||
"usb",
|
"usb",
|
||||||
"updater",
|
|
||||||
"webhook",
|
"webhook",
|
||||||
"zeroconf",
|
"zeroconf",
|
||||||
"zone"
|
"zone"
|
||||||
|
@ -58,16 +58,10 @@ 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, {})
|
_LOGGER.warning(
|
||||||
|
"The updater integration has been deprecated and will be removed in 2022.5, "
|
||||||
for option in (CONF_COMPONENT_REPORTING, CONF_REPORTING):
|
"please remove it from your configuration"
|
||||||
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,
|
|
||||||
)
|
|
||||||
|
|
||||||
async def check_new_version() -> Updater:
|
async def check_new_version() -> Updater:
|
||||||
"""Check if a new version is available and report if one is."""
|
"""Check if a new version is available and report if one is."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user