1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Include platform only integrations in the manifest list api (#48269)

This commit is contained in:
J. Nick Koston
2021-03-29 00:51:48 -10:00
committed by GitHub
parent e2d3c0ea8f
commit 1fb9008488
5 changed files with 65 additions and 26 deletions

View File

@@ -5,6 +5,7 @@ import ast
from pathlib import Path
from homeassistant.requirements import DISCOVERY_INTEGRATIONS
from homeassistant.setup import BASE_PLATFORMS
from .model import Integration
@@ -107,7 +108,6 @@ ALLOWED_USED_COMPONENTS = {
"onboarding",
"persistent_notification",
"person",
"remote",
"script",
"shopping_list",
"sun",
@@ -118,22 +118,7 @@ ALLOWED_USED_COMPONENTS = {
"websocket_api",
"zone",
# Entity integrations with platforms
"alarm_control_panel",
"binary_sensor",
"climate",
"cover",
"device_tracker",
"fan",
"humidifier",
"image_processing",
"light",
"lock",
"media_player",
"scene",
"sensor",
"switch",
"vacuum",
"water_heater",
*BASE_PLATFORMS,
# Other
"mjpeg", # base class, has no reqs or component to load.
"stream", # Stream cannot install on all systems, can be imported without reqs.