Skip to content

Commit

Permalink
Merge 08e8a5f into a387710
Browse files Browse the repository at this point in the history
  • Loading branch information
KNXBroker committed Feb 14, 2021
2 parents a387710 + 08e8a5f commit d137579
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/home_assistant.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ Run HA as usual either via service or by directly typing in `hass`.
Running HA with local XKNX library
------------------------------------

Even when running HA with the XKNX custom component, HA will automatically install a `xknx` library version within `.homeassistant/deps/lib/python[python-version]/site-packages` via pip. This very often causes the problem, that the manually checked out `xknx` library is not in sync with the `xknx` library version HA already contains and uses by default. But getting both in sync is easy:
Even when running HA with the XKNX custom component, HA will automatically install a `xknx` library version within `[hass-directory]/lib/python[python-version]/site-packages` via pip. This very often causes the problem, that the manually checked out `xknx` library is not in sync with the `xknx` library version HA already contains and uses by default. But getting both in sync is easy:

Delete the automatically installed version:

```bash
rm .homeassistant/deps/lib/python[python-version]/site-packages/xknx*
rm [hass-directory]/lib/python[python-version]/site-packages/xknx*
```

Note: `[hass-directory]` is platform dependend (e.g. `.homeassistant/deps` for MacOS or `/srv/homeassistant` for LINUX).

Ideally start HA from command line. Export the environment variable PYTHONPATH to your local `xknx` checkout:

```bash
Expand Down

0 comments on commit d137579

Please sign in to comment.