Skip to content

Commit

Permalink
Update DEVELOPERS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
autoSteve committed Dec 30, 2024
1 parent e3e0764 commit 192c6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DEVELOPERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ As a core component (to run tests the integration must be mounted under core com

To get the simulator to work `/etc/hosts` needs to be modified to specify `127.0.0.1 localhost api.solcast.com.au` (use sudo). For a quick start, `cd config/custom_components/solcast_solar/sim` and execute `python3 -u wsgi.py --limit 5000 --no429`, which gets 5,000 API calls max, and no 'too busy' errors generated on the hour. (`python3 -u wsgi.py --help` for options, or inspect `wsgi.py` for doco.) Note that if the integration or simulator has never been started then dependencies will not yet be installed. The simulator will `pip install` missing dependencies and also create a new self-signed certificate. /etc/hosts is inspected but not modified automatically.

The tests will show up at `tests/components/solcast_solar`. `cd` to there and execute `pytest`. To inspect logging, `pytest -o log_cli=true --log-cli-level=DEBUG`. Additional test contributions will be most welcome.
The tests will show up at `tests/components/solcast_solar`. `cd` to there and execute `pytest`. To inspect logging, `pytest -o log_cli=true --log-cli-level=DEBUG`. For a test coverage report, `pytest --cov=homeassistant.components.solcast_solar --cov-report term-missing -vv`. Additional test contributions will be most welcome.

0 comments on commit 192c6f9

Please sign in to comment.