Remove left-over issue from platform YAML in Radarr (#94091)

This commit is contained in:
G Johansson 2023-06-06 08:25:59 +02:00 committed by GitHub
parent 554ed1e957
commit 13da90da90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 26 deletions

View File

@ -18,8 +18,6 @@ from homeassistant.config_entries import ConfigEntry
from homeassistant.const import EntityCategory, UnitOfInformation
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
from . import RadarrEntity
from .const import DOMAIN
@ -104,24 +102,6 @@ BYTE_SIZES = [
PARALLEL_UPDATES = 1
async def async_setup_platform(
hass: HomeAssistant,
config: ConfigType,
async_add_entities: AddEntitiesCallback,
discovery_info: DiscoveryInfoType | None = None,
) -> None:
"""Set up the Radarr platform."""
async_create_issue(
hass,
DOMAIN,
"removed_yaml",
breaks_in_ha_version="2022.12.0",
is_fixable=False,
severity=IssueSeverity.WARNING,
translation_key="removed_yaml",
)
async def async_setup_entry(
hass: HomeAssistant,
entry: ConfigEntry,

View File

@ -34,11 +34,5 @@
}
}
}
},
"issues": {
"removed_yaml": {
"title": "The Radarr YAML configuration has been removed",
"description": "Configuring Radarr using YAML has been removed.\n\nYour existing YAML configuration is not used by Home Assistant.\n\nRemove the YAML configuration from your configuration.yaml file and restart Home Assistant to fix this issue."
}
}
}