From aa82f96c160928e0c83dc7736fd498769e30e34d Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 16 Mar 2022 11:21:51 +0100 Subject: [PATCH] Use Platform StrEnum in Hassfest manifest plugin (#68234) --- script/hassfest/manifest.py | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/script/hassfest/manifest.py b/script/hassfest/manifest.py index 64239a7fae1..5b344ed505d 100644 --- a/script/hassfest/manifest.py +++ b/script/hassfest/manifest.py @@ -12,6 +12,7 @@ from awesomeversion import ( import voluptuous as vol from voluptuous.humanize import humanize_error +from homeassistant.const import Platform from homeassistant.helpers import config_validation as cv from .model import Config, Integration @@ -33,36 +34,25 @@ SUPPORTED_IOT_CLASSES = [ # List of integrations that are supposed to have no IoT class NO_IOT_CLASS = [ - "air_quality", - "alarm_control_panel", + *{platform.value for platform in Platform}, "api", "auth", "automation", - "binary_sensor", "blueprint", - "button", - "calendar", - "camera", - "climate", "color_extractor", "config", "configurator", "counter", - "cover", "default_config", "device_automation", "device_tracker", "diagnostics", "discovery", "downloader", - "fan", "ffmpeg", "frontend", - "geo_location", "history", "homeassistant", - "humidifier", - "image_processing", "image", "input_boolean", "input_button", @@ -72,18 +62,12 @@ NO_IOT_CLASS = [ "input_text", "intent_script", "intent", - "light", - "lock", "logbook", "logger", "lovelace", - "mailbox", "map", - "media_player", "media_source", "my", - "notify", - "number", "onboarding", "panel_custom", "panel_iframe", @@ -91,25 +75,14 @@ NO_IOT_CLASS = [ "profiler", "proxy", "python_script", - "remote", "safe_mode", - "scene", "script", "search", - "select", - "sensor", - "siren", - "stt", - "switch", "system_health", "system_log", "tag", "timer", "trace", - "tts", - "vacuum", - "water_heater", - "weather", "webhook", "websocket_api", "zone",