Deprecate "wanted" sensor in radarr (#63818)
* Remove invalid "wanted" sensor from radarr * uno maspull/66869/head^2
parent
cd38878a4c
commit
14a7ee5d0b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue