Remove deprecated Wanted sensor in radarr (#69500)

pull/69531/head
Robert Hillis 2022-04-07 01:32:52 -04:00 committed by GitHub
parent 5bcb795bca
commit 8ef7ac1877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 11 deletions

View File

@ -65,12 +65,6 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
native_unit_of_measurement="Movies",
icon="mdi:television",
),
SensorEntityDescription(
key="wanted",
name="Wanted",
native_unit_of_measurement="Movies",
icon="mdi:television",
),
SensorEntityDescription(
key="movies",
name="Movies",
@ -139,15 +133,10 @@ def setup_platform(
"""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)