|
| None | __init__ (self, dict[str, Any] data, *str|None path=None, str|None expected_domain=None, Callable[[Any], Any] schema) |
| |
| dict[str, Any] | inputs (self) |
| |
| dict[str, Any] | metadata (self) |
| |
| str | name (self) |
| |
| None | update_metadata (self, *str|None source_url=None) |
| |
| list[str]|None | validate (self) |
| |
| str | yaml (self) |
| |
Blueprint of a configuration structure.
Definition at line 50 of file models.py.
◆ __init__()
| None homeassistant.components.blueprint.models.Blueprint.__init__ |
( |
|
self, |
|
|
dict[str, Any] |
data, |
|
|
*str | None |
path = None, |
|
|
str | None |
expected_domain = None, |
|
|
Callable[[Any], Any] |
schema |
|
) |
| |
Initialize a blueprint.
Definition at line 53 of file models.py.
◆ inputs()
| dict[str, Any] homeassistant.components.blueprint.models.Blueprint.inputs |
( |
|
self | ) |
|
Return flattened blueprint inputs.
Definition at line 98 of file models.py.
◆ metadata()
| dict[str, Any] homeassistant.components.blueprint.models.Blueprint.metadata |
( |
|
self | ) |
|
Return blueprint metadata.
Definition at line 109 of file models.py.
◆ name()
| str homeassistant.components.blueprint.models.Blueprint.name |
( |
|
self | ) |
|
Return blueprint name.
Definition at line 93 of file models.py.
◆ update_metadata()
| None homeassistant.components.blueprint.models.Blueprint.update_metadata |
( |
|
self, |
|
|
*str | None |
source_url = None |
|
) |
| |
◆ validate()
| list[str] | None homeassistant.components.blueprint.models.Blueprint.validate |
( |
|
self | ) |
|
Test if the Home Assistant installation supports this blueprint.
Return list of errors if not valid.
Definition at line 123 of file models.py.
◆ yaml()
| str homeassistant.components.blueprint.models.Blueprint.yaml |
( |
|
self | ) |
|
Dump blueprint as YAML.
Definition at line 118 of file models.py.
◆ data
| homeassistant.components.blueprint.models.Blueprint.data |
◆ domain
| homeassistant.components.blueprint.models.Blueprint.domain |
The documentation for this class was generated from the following file:
- core/homeassistant/components/blueprint/models.py