To setup a local development environment, here are the recommended workflow:
- 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. - 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 .
- Select
File -> Add Folder to Workspace...
in VSCode, add both/workspaces/ha-deye-dehumidifier
and/workspaces/libdeye
into the workspace. - Select
File -> Save Workspace As...
, save the workspace into/workspaces/hass.code-workspace
. - Edit settings for this workspace, add
"python.analysis.extraPaths": ["/workspaces/core", "/workspaces/libdeye"]
- Press F5 to start running a Home Assistant instance. This integration should be available now.
- To debug
libdeye
locally, please refer to this link.