Fix Radarr import (#79037)

This commit is contained in:
Robert Hillis 2022-09-25 17:48:25 -04:00 committed by GitHub
parent f41b69e19e
commit b820fed11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,8 +106,6 @@ SENSOR_TYPES: dict[str, RadarrSensorEntityDescription] = {
),
}
SENSOR_KEYS: list[str] = [description.key for description in SENSOR_TYPES.values()]
BYTE_SIZES = [
DATA_BYTES,
DATA_KILOBYTES,
@ -122,7 +120,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
vol.Optional(CONF_HOST, default="localhost"): cv.string,
vol.Optional("include_paths", default=[]): cv.ensure_list,
vol.Optional(CONF_MONITORED_CONDITIONS, default=["movies"]): vol.All(
cv.ensure_list, [vol.In(SENSOR_KEYS)]
cv.ensure_list
),
vol.Optional(CONF_PORT, default=7878): cv.port,
vol.Optional(CONF_SSL, default=False): cv.boolean,