Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.38 KB

CONTRIBUTING.md

File metadata and controls

22 lines (18 loc) · 1.38 KB

Contributing

To setup a local development environment, here are the recommended workflow:

  1. Follow instructions here to open the home-assistant/core repo in a VSCode devcontainer. If you are having trouble during repo cloning, try running ssh-add in your host machine.
  2. Open a terminal in VSCode and run:
cd /workspaces
git clone [email protected]:stackia/ha-deye-dehumidifier.git
git clone [email protected]:stackia/libdeye.git
cd /workspace/core
mkdir -p config/custom_components
ln -s /workspaces/ha-deye-dehumidifier/custom_components/deye_dehumidifier /workspaces/core/config/custom_components/deye_dehumidifier
pip install -e .
  1. Select File -> Add Folder to Workspace... in VSCode, add both /workspaces/ha-deye-dehumidifier and /workspaces/libdeye into the workspace.
  2. Select File -> Save Workspace As..., save the workspace into /workspaces/hass.code-workspace.
  3. Edit settings for this workspace, add "python.analysis.extraPaths": ["/workspaces/core", "/workspaces/libdeye"]
  4. Press F5 to start running a Home Assistant instance. This integration should be available now.
  5. To debug libdeye locally, please refer to this link.