mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +00:00
Use Platform StrEnum in Hassfest manifest plugin (#68234)
This commit is contained in:
parent
62c4fed549
commit
aa82f96c16
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user