Classes | |
| class | ImportedBlueprint |
| class | UnsupportedUrl |
Functions | |
| ImportedBlueprint | _extract_blueprint_from_community_topic (str url, dict topic) |
| str | _get_community_post_import_url (str url) |
| str | _get_github_import_url (str url) |
| ImportedBlueprint | fetch_blueprint_from_community_post (HomeAssistant hass, str url) |
| ImportedBlueprint | fetch_blueprint_from_generic_url (HomeAssistant hass, str url) |
| ImportedBlueprint | fetch_blueprint_from_github_gist_url (HomeAssistant hass, str url) |
| ImportedBlueprint | fetch_blueprint_from_github_url (HomeAssistant hass, str url) |
| ImportedBlueprint | fetch_blueprint_from_url (HomeAssistant hass, str url) |
| ImportedBlueprint | fetch_blueprint_from_website_url (HomeAssistant hass, str url) |
Variables | |
| COMMUNITY_CODE_BLOCK | |
| COMMUNITY_TOPIC_PATTERN | |
| COMMUNITY_TOPIC_SCHEMA | |
| tuple | FETCH_FUNCTIONS |
| GITHUB_FILE_PATTERN | |
| WEBSITE_PATTERN | |
Import logic for blueprint.
|
private |
Extract a blueprint from a community post JSON. Async friendly.
Definition at line 97 of file importer.py.
|
private |
Convert a forum post url to an import url. Async friendly.
Definition at line 76 of file importer.py.
|
private |
Convert a GitHub url to the raw content. Async friendly.
Definition at line 60 of file importer.py.
| ImportedBlueprint homeassistant.components.blueprint.importer.fetch_blueprint_from_community_post | ( | HomeAssistant | hass, |
| str | url | ||
| ) |
Get blueprints from a community post url. Method can raise aiohttp client exceptions, vol.Invalid. Caller needs to implement own timeout.
Definition at line 143 of file importer.py.
| ImportedBlueprint homeassistant.components.blueprint.importer.fetch_blueprint_from_generic_url | ( | HomeAssistant | hass, |
| str | url | ||
| ) |
Get a blueprint from a generic website.
Definition at line 248 of file importer.py.
| ImportedBlueprint homeassistant.components.blueprint.importer.fetch_blueprint_from_github_gist_url | ( | HomeAssistant | hass, |
| str | url | ||
| ) |
Get a blueprint from a Github Gist.
Definition at line 182 of file importer.py.
| ImportedBlueprint homeassistant.components.blueprint.importer.fetch_blueprint_from_github_url | ( | HomeAssistant | hass, |
| str | url | ||
| ) |
Get a blueprint from a github url.
Definition at line 161 of file importer.py.
| ImportedBlueprint homeassistant.components.blueprint.importer.fetch_blueprint_from_url | ( | HomeAssistant | hass, |
| str | url | ||
| ) |
Get a blueprint from a url. The returned blueprint will only be validated with BLUEPRINT_SCHEMA, not the domain specific schema.
Definition at line 275 of file importer.py.
| ImportedBlueprint homeassistant.components.blueprint.importer.fetch_blueprint_from_website_url | ( | HomeAssistant | hass, |
| str | url | ||
| ) |
Get a blueprint from our website.
Definition at line 228 of file importer.py.
| homeassistant.components.blueprint.importer.COMMUNITY_CODE_BLOCK |
Definition at line 25 of file importer.py.
| homeassistant.components.blueprint.importer.COMMUNITY_TOPIC_PATTERN |
Definition at line 21 of file importer.py.
| homeassistant.components.blueprint.importer.COMMUNITY_TOPIC_SCHEMA |
Definition at line 37 of file importer.py.
| tuple homeassistant.components.blueprint.importer.FETCH_FUNCTIONS |
Definition at line 266 of file importer.py.
| homeassistant.components.blueprint.importer.GITHUB_FILE_PATTERN |
Definition at line 29 of file importer.py.
| homeassistant.components.blueprint.importer.WEBSITE_PATTERN |
Definition at line 33 of file importer.py.