Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ha_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ jobs:
domain = dep["domain"]
name = dep.get("name", domain)
owner_repo = repo.rstrip("/").removeprefix("https://github.com/")
url = f"https://github.com/{owner_repo}/archive/refs/heads/main.tar.gz"
print(f"Installing {name} ({domain}) from {repo}")
ref = dep.get("ref", "main")
url = f"https://github.com/{owner_repo}/archive/refs/heads/{ref}.tar.gz"
print(f"Installing {name} ({domain}) from {repo}@{ref}")
with tempfile.TemporaryDirectory() as tmp:
archive = os.path.join(tmp, "component.tar.gz")
urllib.request.urlretrieve(url, archive)
Expand Down
5 changes: 5 additions & 0 deletions tests/custom_components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ dependencies:
- name: Template Climate
domain: climate_template
repository: https://github.com/mikopp/hass-template-climate
# Optional: branch to install from (defaults to "main" if omitted).
# Lets CI validate this config against an unmerged hass-template-climate
# branch/PR before it lands on main — set it temporarily on a throwaway
# branch, never on master.
# ref: some-branch-to-validate
hacs: mikopp/hass-template-climate
description: >
Provides the climate_template platform used in packages/climate_airflow.yaml
Expand Down
Loading