* Creation of the central boiler config + binary_sensor entity * Fonctional before testu. Miss the service call * Full featured but without testu * Documentation and release. * Add events in README * FIX #341 - when window state change, open_valve_percent should be resend * Issue #343 - disable safety mode for outdoor thermometer * Issue #255 - Specify window action on window open detection * Add en and string translation * central boiler - add entites to fine tune the boiler start * With testu ok * Add testus for valve and climate * Add testus in pipelines * With pip 3 * With more pytest options * Ass coverage tests * Add coverage report in github * Release 5.3.0 --------- Co-authored-by: Jean-Marc Collin <jean-marc.collin-extern@renault.com>
56 lines
1.2 KiB
Bash
Executable File
56 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# set -x
|
|
|
|
. .bashrc
|
|
|
|
function get_dev() {
|
|
pip install -r requirements_dev.txt
|
|
pip install -r requirements_test.txt
|
|
if [ -d /home/vscode/core ]; then
|
|
sudo chown -R vscode: /home/vscode/core
|
|
fi
|
|
}
|
|
|
|
echo "arguments are: "$1
|
|
|
|
case $1 in
|
|
start)
|
|
echo "Running container start"
|
|
./scripts/starts_ha.sh
|
|
;;
|
|
dev-setup)
|
|
get_dev
|
|
;;
|
|
install)
|
|
echo "Running container post installation"
|
|
script/setup
|
|
;;
|
|
translations)
|
|
echo "Running container start"
|
|
cd $HA
|
|
python3 -m script.translations develop
|
|
;;
|
|
hassfest)
|
|
echo "Running container start"
|
|
python3 -m script.hassfest
|
|
# python -m script.hassfest --requirements --action validate --integration-path config/custom_components/versatile_thermostat/
|
|
;;
|
|
restart)
|
|
echo "Killing existing container"
|
|
pkill hass
|
|
echo "Restarting existing container"
|
|
pwd
|
|
./scripts/starts_ha.sh
|
|
;;
|
|
coverage)
|
|
rm -rf htmlcov/*
|
|
echo "Starting coverage tests"
|
|
coverage run -m pytest tests/
|
|
echo "Starting coverage report"
|
|
coverage report
|
|
echo "Starting coverage html"
|
|
coverage html
|
|
;;
|
|
esac
|