Remove deprecated Wanted sensor in radarr (#69500)
parent
5bcb795bca
commit
8ef7ac1877
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue