From aad2dd6232def271b5025c9827dbd28c340adff9 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 4 Jul 2025 11:36:15 +0200 Subject: [PATCH] ESPHome: Fix Linking issue (#5685) --- ct/esphome.sh | 5 +++++ install/esphome-install.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ct/esphome.sh b/ct/esphome.sh index 127a2d9a5..e21641a32 100644 --- a/ct/esphome.sh +++ b/ct/esphome.sh @@ -73,6 +73,11 @@ EOF msg_ok "Updated systemd service" fi + msg_info "Linking esphome to /usr/local/bin" + rm -f /usr/local/bin/esphome + ln -s /opt/esphome/.venv/bin/esphome /usr/local/bin/esphome + msg_ok "Linked esphome binary" + msg_info "Starting ${APP}" systemctl start esphomeDashboard msg_ok "Started ${APP}" diff --git a/install/esphome-install.sh b/install/esphome-install.sh index 8e8e022c5..b3cf777be 100644 --- a/install/esphome-install.sh +++ b/install/esphome-install.sh @@ -29,6 +29,11 @@ $STD /opt/esphome/.venv/bin/python -m pip install --upgrade pip $STD /opt/esphome/.venv/bin/python -m pip install esphome tornado esptool msg_ok "Setup and Installed ESPHome" +msg_info "Linking esphome to /usr/local/bin" +rm -f /usr/local/bin/esphome +ln -s /opt/esphome/.venv/bin/esphome /usr/local/bin/esphome +msg_ok "Linked esphome binary" + msg_info "Creating Service" mkdir -p /root/config cat </etc/systemd/system/esphomeDashboard.service