Skip to content

Commit 1211739

Browse files
committed
Test problem info
1 parent 3af7c45 commit 1211739

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

Test.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _See [Test EMHASS-Add-On build](#Test-EMHASS-Add-On-build) for an example of tes
1515

1616
## Develop on VS-Code DevContainer with Home Assistant test environment
1717

18-
Using VS-Code DevContainers, you can generate a Home Assistant test environment for the addon before release. We can pull a version of the EMHASS package (required with EMHASS-Add-on) from a Git repo/branch, or via pip. Alternately, we can specify different pre-built EMHASS-Add-On versions _(EMHASS-Add-On Docker images)_ from DockerHub.
18+
Using VS-Code DevContainers, you can generate a Home Assistant test environment for the Add-on before release. We can pull a version of the EMHASS package (required with EMHASS-Add-on) from a Git repo/branch, or via pip. Alternately, we can specify different pre-built EMHASS-Add-On versions _(EMHASS-Add-On Docker images)_ from DockerHub.
1919

2020
See the following steps:
2121

@@ -28,6 +28,7 @@ See the following steps:
2828
- To specify the Git repo and branch, change lines accordingly in [*build.yaml*](/emhass/build.yaml).
2929
- repo: `#build_repo: https://github.com/davidusb-geek/emhass.git #addon-git mode`
3030
- branch: `#build_branch: master #addon-git mode`
31+
3132
- pip
3233
- Change `emhass` version in [requirements.txt](/emhass/requirements.txt) to pull EMHASS via pip version.
3334
- You may need to modify the other python packages to different versions to match
@@ -39,6 +40,9 @@ See the following steps:
3940
- Install/Run and Test Add-on
4041
- For more infomation see Home Assistant's [local addon testing](https://developers.home-assistant.io/docs/add-ons/testing).
4142

43+
_Note: If, on run, the emhass version looks off. Try: uninstalling Add-on, `check for updates` on Add-on Store page, and re-installing._
44+
_If you have chosen Git, also try removing the `emhass` python package from requirements.txt ._
45+
4246
## Adding EMHASS-Add-on into pre-existing Home Assistant environment
4347

4448
If you would like to test a version of EMHASS-Add-on inside a pre-existing Home Assistant (with Supervisor) environment, see the following steps:
@@ -73,7 +77,7 @@ If you would like to test a version of EMHASS-Add-on inside a pre-existing Home
7377
```
7478

7579
- If you want EMHASS from **Git**:
76-
- Tell the addon to use Git, and specify what EMHASS repo and branch you would like to pull.
80+
- Tell the Add-on to use Git, and specify what EMHASS repo and branch you would like to pull.
7781

7882
- To tell Docker to pull from Git, change the build argument from `addon` to `addon-git` in the [_build.yaml_](./emhass/build.yaml).
7983
- ssh example:
@@ -82,7 +86,7 @@ If you would like to test a version of EMHASS-Add-on inside a pre-existing Home
8286
```
8387
- To specify the EMHASS Git repository and branch values, _(optional)_ change lines in [*build.yaml*](/emhass/build.yaml):
8488
- `#build_repo: https://github.com/davidusb-geek/emhass.git #addon-git mode`
85-
- `#build_branch: master #addon-git mode`
89+
- `#build_branch: master #addon-git mode` _
8690

8791
- ssh example:
8892

@@ -93,13 +97,17 @@ If you would like to test a version of EMHASS-Add-on inside a pre-existing Home
9397
sed -i.bak "s%build_repo:\s.*%build_repo: $repo%g" ~/addons/emhass-add-on/emhass/build.yaml
9498
sed -i.bak "s/build_branch:\s.*/build_repo: $branch/g" ~/addons/emhass-add-on/emhass/build.yaml
9599
```
96-
97100
- Finally:
98101
- head to Home Assistant: `Add-ons` > `ADD-ON STORE`
99-
- you should see an `EMHASS` addon under `Local add-ons`
102+
- you should see an `EMHASS` Add-on under `Local add-ons`
100103
- If you don't, try hamburger button _(3 dots)_ on top right > check updates > refresh page
101-
- Install and test addon
102-
- Use the Supervisor logs _(on the config/logs page)_ to see any logs with the addon.
104+
- Install and test Add-on
105+
- Use the Supervisor logs _(on the config/logs page)_ to see any logs with the Add-on.
106+
107+
</br>
108+
109+
_Note: If, on run, the emhass version looks off. Try: uninstalling Add-on, check for updates on Add-on Store page, and re-installing._
110+
_If you have chosen Git, also try removing the emhass python package from requirements.txt ._
103111
104112
## Test EMHASS-Add-On build
105113

0 commit comments

Comments
 (0)