mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 10:44:13 +01:00
3baaf6b7c4
* Update Hassio base image to 1.4.1 * Fix rotary encoder typo Fixes https://github.com/esphome/issues/issues/136
15 lines
732 B
Bash
15 lines
732 B
Bash
#!/usr/bin/with-contenv bashio
|
|
# ==============================================================================
|
|
# Community Hass.io Add-ons: ESPHome
|
|
# This files installs the user ESPHome version if specified
|
|
# ==============================================================================
|
|
|
|
declare esphome_version
|
|
|
|
if bashio::config.has_value 'esphome_version'; then
|
|
esphome_version=$(bashio::config 'esphome_version')
|
|
full_url="https://github.com/esphome/esphome/archive/${esphome_version}.zip"
|
|
bashio::log.info "Installing esphome version '${esphome_version}' (${full_url})..."
|
|
pip2 install --no-cache-dir --no-binary :all: "${full_url}" \
|
|
|| bashio::exit.nok "Failed installing esphome pinned version."
|
|
fi
|