Add author metadata for blueprints (#87070)

This commit is contained in:
Paul Bottein 2023-02-02 17:00:26 +01:00 committed by GitHub
parent 07a3046d11
commit f7666239ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@ blueprint:
description: Turn on a light when motion is detected.
domain: automation
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
author: Home Assistant
input:
motion_entity:
name: Motion Sensor

View File

@ -3,6 +3,7 @@ blueprint:
description: Send a notification to a device when a person leaves a specific zone.
domain: automation
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/notify_leaving_zone.yaml
author: Home Assistant
input:
person_entity:
name: Person

View File

@ -7,5 +7,6 @@ CONF_INPUT = "input"
CONF_SOURCE_URL = "source_url"
CONF_HOMEASSISTANT = "homeassistant"
CONF_MIN_VERSION = "min_version"
CONF_AUTHOR = "author"
DOMAIN = "blueprint"

View File

@ -15,6 +15,7 @@ from homeassistant.core import callback
from homeassistant.helpers import config_validation as cv, selector
from .const import (
CONF_AUTHOR,
CONF_BLUEPRINT,
CONF_HOMEASSISTANT,
CONF_INPUT,
@ -73,6 +74,7 @@ BLUEPRINT_SCHEMA = vol.Schema(
vol.Optional(CONF_DESCRIPTION): str,
vol.Required(CONF_DOMAIN): str,
vol.Optional(CONF_SOURCE_URL): cv.url,
vol.Optional(CONF_AUTHOR): str,
vol.Optional(CONF_HOMEASSISTANT): {
vol.Optional(CONF_MIN_VERSION): version_validator
},

View File

@ -5,6 +5,7 @@ blueprint:
running the specified action.
domain: script
source_url: https://github.com/home-assistant/core/blob/master/homeassistant/components/script/blueprints/confirmable_notification.yaml
author: Home Assistant
input:
notify_device:
name: Device to notify