mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-28 03:41:57 +01:00
Add examples for external_component PR shorthand format (#1581)
This commit is contained in:
parent
ce8e268483
commit
fbc5808e24
@ -22,6 +22,10 @@ Bundled components can be overridden using this feature.
|
||||
- source: github://esphome/esphome@dev
|
||||
components: [ rtttl ]
|
||||
|
||||
# equivalent shorthand for GitHub pull request
|
||||
- source: github://pr#2639
|
||||
components: [ rtttl ]
|
||||
|
||||
# use all components from a local folder
|
||||
- source:
|
||||
type: local
|
||||
@ -165,6 +169,14 @@ The source field accepts a short hand **github://** resource:
|
||||
# shorthand
|
||||
source: github://<user or org>/<repository name>[@<branch or tag>]
|
||||
|
||||
The source field also accepts a short hand **github://** pull request from the ESPHome repository:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
external_components:
|
||||
# shorthand
|
||||
source: github://pr#<number>
|
||||
|
||||
Under the hood, during validation, ESPHome will clone the git repository into the hidden ``.esphome``
|
||||
folder and components will then be loaded from this local copy. The local path of the cloned repository
|
||||
varies per repository name and ref name, so repositories with different refs are considered different
|
||||
|
Loading…
Reference in New Issue
Block a user