diff --git a/README.md b/README.md index 518a4f6dec..157c0a6de6 100644 --- a/README.md +++ b/README.md @@ -535,54 +535,6 @@ def test_ts0121_signature(assert_signature_matches_quirk): assert_signature_matches_quirk(zhaquirks.tuya.ts0121_plug.Plug, signature) ``` -# Testing new releases - -Testing a new release of the zha-quirks package before it is released in Home Assistant. - -If you are using Supervised Home Assistant (formerly known as the Hassio/Hass.io distro): - -- Add as "add-on" repository -- Install "Custom deps deployment" addon -- Update config like: - - ```yml - pypi: - - zha-quirks==0.0.38 - apk: [] - ``` - - where 0.0.38 is the new version - -- Start the addon - -If you are instead using some custom python installation of Home Assistant then do this: - -- Activate your python virtual env -- Update package with `pip` - - ```bash - pip install zha-quirks==0.0.38 - ``` - -# Testing quirks in development in docker based install - -If you are using Supervised Home Assistant (formerly known as the Hassio/Hass.io distro) you will need to get access to the home-assistant docker container. Directions below are given for using the portainer add-on to do this, there are other methods as well not covered here. - -- Install the portainer add-on () from Home Assistant Community Add-ons. -- Follow the add-on documentation to un-hide the home-assistant container () -- Stage the update quirk in a directory within your config directory -- Use portainer to access a console in the home-assistant container: - - - -- Access the quirks directory - - on HA > 0.113: /usr/local/lib/python3.8/site-packages/zhaquirks/ - - on HA < 0.113: /usr/local/lib/python3.7/site-packages/zhaquirks/ -- Copy updated/new quirk to zhaquirks directory: `cp -a /config/temp/NEW_QUIRK ./` -- Remove the **pycache** folder so it is regenerated `rm -rf ./__pycache__/` -- Close out the console and restart HA. -- Note: The added/update quirk will not survive a HA version update. - # Thanks - Special thanks to damarco for the majority of the device tracker code