From 14a7ee5d0bca935a9d260bb9ecf773326cce0bff Mon Sep 17 00:00:00 2001 From: Robert Hillis Date: Mon, 21 Feb 2022 13:12:09 -0500 Subject: [PATCH] Deprecate "wanted" sensor in radarr (#63818) * Remove invalid "wanted" sensor from radarr * uno mas --- homeassistant/components/radarr/sensor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/radarr/sensor.py b/homeassistant/components/radarr/sensor.py index 02443180358..d190a2e96ea 100644 --- a/homeassistant/components/radarr/sensor.py +++ b/homeassistant/components/radarr/sensor.py @@ -138,10 +138,16 @@ def setup_platform( ) -> None: """Set up the Radarr platform.""" conditions = config[CONF_MONITORED_CONDITIONS] + # deprecated in 2022.3 + if "wanted" in conditions: + _LOGGER.warning( + "Wanted is not a valid condition option. Please remove it from your config" + ) entities = [ RadarrSensor(hass, config, description) for description in SENSOR_TYPES if description.key in conditions + if description.key != "wanted" ] add_entities(entities, True)