mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Add author metadata for blueprints (#87070)
This commit is contained in:
parent
07a3046d11
commit
f7666239ff
@ -3,6 +3,7 @@ blueprint:
|
|||||||
description: Turn on a light when motion is detected.
|
description: Turn on a light when motion is detected.
|
||||||
domain: automation
|
domain: automation
|
||||||
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
|
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
|
||||||
|
author: Home Assistant
|
||||||
input:
|
input:
|
||||||
motion_entity:
|
motion_entity:
|
||||||
name: Motion Sensor
|
name: Motion Sensor
|
||||||
|
@ -3,6 +3,7 @@ blueprint:
|
|||||||
description: Send a notification to a device when a person leaves a specific zone.
|
description: Send a notification to a device when a person leaves a specific zone.
|
||||||
domain: automation
|
domain: automation
|
||||||
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/notify_leaving_zone.yaml
|
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/notify_leaving_zone.yaml
|
||||||
|
author: Home Assistant
|
||||||
input:
|
input:
|
||||||
person_entity:
|
person_entity:
|
||||||
name: Person
|
name: Person
|
||||||
|
@ -7,5 +7,6 @@ CONF_INPUT = "input"
|
|||||||
CONF_SOURCE_URL = "source_url"
|
CONF_SOURCE_URL = "source_url"
|
||||||
CONF_HOMEASSISTANT = "homeassistant"
|
CONF_HOMEASSISTANT = "homeassistant"
|
||||||
CONF_MIN_VERSION = "min_version"
|
CONF_MIN_VERSION = "min_version"
|
||||||
|
CONF_AUTHOR = "author"
|
||||||
|
|
||||||
DOMAIN = "blueprint"
|
DOMAIN = "blueprint"
|
||||||
|
@ -15,6 +15,7 @@ from homeassistant.core import callback
|
|||||||
from homeassistant.helpers import config_validation as cv, selector
|
from homeassistant.helpers import config_validation as cv, selector
|
||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
|
CONF_AUTHOR,
|
||||||
CONF_BLUEPRINT,
|
CONF_BLUEPRINT,
|
||||||
CONF_HOMEASSISTANT,
|
CONF_HOMEASSISTANT,
|
||||||
CONF_INPUT,
|
CONF_INPUT,
|
||||||
@ -73,6 +74,7 @@ BLUEPRINT_SCHEMA = vol.Schema(
|
|||||||
vol.Optional(CONF_DESCRIPTION): str,
|
vol.Optional(CONF_DESCRIPTION): str,
|
||||||
vol.Required(CONF_DOMAIN): str,
|
vol.Required(CONF_DOMAIN): str,
|
||||||
vol.Optional(CONF_SOURCE_URL): cv.url,
|
vol.Optional(CONF_SOURCE_URL): cv.url,
|
||||||
|
vol.Optional(CONF_AUTHOR): str,
|
||||||
vol.Optional(CONF_HOMEASSISTANT): {
|
vol.Optional(CONF_HOMEASSISTANT): {
|
||||||
vol.Optional(CONF_MIN_VERSION): version_validator
|
vol.Optional(CONF_MIN_VERSION): version_validator
|
||||||
},
|
},
|
||||||
|
@ -5,6 +5,7 @@ blueprint:
|
|||||||
running the specified action.
|
running the specified action.
|
||||||
domain: script
|
domain: script
|
||||||
source_url: https://github.com/home-assistant/core/blob/master/homeassistant/components/script/blueprints/confirmable_notification.yaml
|
source_url: https://github.com/home-assistant/core/blob/master/homeassistant/components/script/blueprints/confirmable_notification.yaml
|
||||||
|
author: Home Assistant
|
||||||
input:
|
input:
|
||||||
notify_device:
|
notify_device:
|
||||||
name: Device to notify
|
name: Device to notify
|
||||||
|
Loading…
x
Reference in New Issue
Block a user