mirror of
https://github.com/esphome/home-assistant-addon.git
synced 2025-01-19 21:11:21 +01:00
15 lines
545 B
Plaintext
15 lines
545 B
Plaintext
|
#!/usr/bin/with-contenv bash
|
||
|
# ==============================================================================
|
||
|
# Community Hass.io Add-ons: ESPHome
|
||
|
# Runs the ESPHome dashboard
|
||
|
# ==============================================================================
|
||
|
# shellcheck disable=SC1091
|
||
|
source /usr/lib/hassio-addons/base.sh
|
||
|
|
||
|
if hass.config.true 'leave_front_door_open'; then
|
||
|
export DISABLE_HA_AUTHENTICATION=true
|
||
|
fi
|
||
|
|
||
|
hass.log.info "Starting ESPHome dashboard..."
|
||
|
exec esphome /config/esphome dashboard --socket /var/run/esphome.sock --hassio
|