From 8befb3b905ecdf18719412ef589387676195197f Mon Sep 17 00:00:00 2001 From: Robert Hillis Date: Wed, 23 Feb 2022 09:22:50 -0500 Subject: [PATCH] Deprecate yaml config for fritzbox callmonitor (#61762) Co-authored-by: Franck Nijhof --- homeassistant/components/fritzbox_callmonitor/sensor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/fritzbox_callmonitor/sensor.py b/homeassistant/components/fritzbox_callmonitor/sensor.py index 490b67c03bd..5efb0776c41 100644 --- a/homeassistant/components/fritzbox_callmonitor/sensor.py +++ b/homeassistant/components/fritzbox_callmonitor/sensor.py @@ -55,6 +55,7 @@ _LOGGER = logging.getLogger(__name__) SCAN_INTERVAL = timedelta(hours=3) +# Deprecated in Home Assistant 2022.3 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( { vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string, @@ -75,6 +76,12 @@ async def async_setup_platform( discovery_info: DiscoveryInfoType | None = None, ) -> None: """Import the platform into a config entry.""" + _LOGGER.warning( + "Configuration of the AVM FRITZ!Box Call Monitor sensor platform in YAML " + "is deprecated and will be removed in Home Assistant 2022.5; " + "Your existing configuration has been imported into the UI automatically " + "and can be safely removed from your configuration.yaml file" + ) hass.async_create_task( hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_IMPORT}, data=config