Add author metadata for blueprints (#87070)
parent
07a3046d11
commit
f7666239ff
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue