mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Deprecate "wanted" sensor in radarr (#63818)
* Remove invalid "wanted" sensor from radarr * uno mas
This commit is contained in:
parent
cd38878a4c
commit
14a7ee5d0b
@ -138,10 +138,16 @@ def setup_platform(
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Set up the Radarr platform."""
|
"""Set up the Radarr platform."""
|
||||||
conditions = config[CONF_MONITORED_CONDITIONS]
|
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 = [
|
entities = [
|
||||||
RadarrSensor(hass, config, description)
|
RadarrSensor(hass, config, description)
|
||||||
for description in SENSOR_TYPES
|
for description in SENSOR_TYPES
|
||||||
if description.key in conditions
|
if description.key in conditions
|
||||||
|
if description.key != "wanted"
|
||||||
]
|
]
|
||||||
add_entities(entities, True)
|
add_entities(entities, True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user