Point the project at its Gitea repository
Set the manifest's links and code owner to git.asw.io/arne/ha-babytracker. HACS can only install from GitHub, so the README now leads with a by-hand install and describes a GitHub mirror for HACS users. Drop the HACS check from the workflow because it cannot pass on Gitea. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6466f002e0
commit
821e4f5d1c
3 files changed
+25
-23
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Baby Tracker for Home Assistant
|
||||
|
||||
An unofficial [HACS](https://hacs.xyz) integration that connects Home Assistant to the
|
||||
An unofficial integration that connects Home Assistant to the
|
||||
sync group of the Baby Tracker app (`com.nighp.babytracker_android`). You can see your
|
||||
baby's log in Home Assistant and add to it, and entries sync with the app on your other
|
||||
devices.
|
||||
@@ -21,19 +21,27 @@ engineered from version 4.53 of the Android app.
|
||||
|
||||
## Install
|
||||
|
||||
### With HACS
|
||||
|
||||
The repository has to be public on GitHub. Before publishing it, replace
|
||||
`YOUR_GITHUB_USERNAME` in `custom_components/babytracker/manifest.json`.
|
||||
|
||||
1. In HACS, open the menu and choose **Custom repositories**.
|
||||
2. Add the repository URL, with the type **Integration**.
|
||||
3. Find **Baby Tracker** in HACS, download it, and restart Home Assistant.
|
||||
|
||||
### By hand
|
||||
|
||||
Copy `custom_components/babytracker` into the `custom_components` folder of your Home
|
||||
Assistant configuration, then restart.
|
||||
From a terminal on the Home Assistant machine, in your configuration folder (usually
|
||||
`/config`), run this and then restart Home Assistant. Run it again to update.
|
||||
|
||||
```bash
|
||||
mkdir -p custom_components && rm -rf custom_components/babytracker && curl -fsSL https://git.asw.io/arne/ha-babytracker/archive/main.tar.gz | tar xz --strip-components=2 -C custom_components ha-babytracker/custom_components/babytracker
|
||||
```
|
||||
|
||||
You can also copy `custom_components/babytracker` over yourself, for example with the
|
||||
Samba or File editor add-ons.
|
||||
|
||||
### With HACS
|
||||
|
||||
HACS can only install from GitHub, so it can't use the repository at `git.asw.io` directly.
|
||||
To use HACS, mirror this repository to a public GitHub repository, which Gitea can do
|
||||
automatically under **Settings → Repository → Mirror settings**. Then:
|
||||
|
||||
1. In HACS, open the menu and choose **Custom repositories**.
|
||||
2. Add the **GitHub** URL, with the type **Integration**.
|
||||
3. Find **Baby Tracker** in HACS, download it, and restart Home Assistant.
|
||||
|
||||
### Set it up
|
||||
|
||||
@@ -230,5 +238,5 @@ python3 -m unittest discover -s tests
|
||||
|
||||
The tests use a mock server written from the same analysis of the app. The integration's
|
||||
tests run against small stand-ins for Home Assistant's APIs in `tests/ha_stubs`, so they
|
||||
don't show that it works in real Home Assistant. The GitHub workflow adds Home Assistant's
|
||||
`hassfest` and the HACS validation.
|
||||
don't show that it works in real Home Assistant. The workflow in `.github/workflows`, which
|
||||
Gitea Actions also reads, adds Home Assistant's `hassfest`.
|
||||
Reference in new issue
Block a user