2019-01-02 12:21:26 +01:00
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
# ==============================================================================
|
2019-02-13 16:54:02 +01:00
|
|
|
# Community Hass.io Add-ons: ESPHome
|
|
|
|
# This files installs the user ESPHome version if specified
|
2019-01-02 12:21:26 +01:00
|
|
|
# ==============================================================================
|
|
|
|
# shellcheck disable=SC1091
|
|
|
|
source /usr/lib/hassio-addons/base.sh
|
|
|
|
|
2019-02-13 16:54:02 +01:00
|
|
|
declare esphome_version
|
2019-01-02 12:21:26 +01:00
|
|
|
|
2019-02-13 16:54:02 +01:00
|
|
|
if hass.config.has_value 'esphome_version'; then
|
|
|
|
esphome_version=$(hass.config.get 'esphome_version')
|
|
|
|
pip2 install --no-cache-dir --no-binary :all: "https://github.com/esphome/esphome/archive/${esphome_version}.zip"
|
2019-01-02 16:34:38 +01:00
|
|
|
fi
|