From 7b9b33b7f5846277841739ddea8a28da98543438 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 25 Jan 2021 19:29:56 +0100 Subject: [PATCH] Cleanup Supervisor service discovery (#73) --- home-panel/rootfs/etc/cont-init.d/discovery.sh | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 home-panel/rootfs/etc/cont-init.d/discovery.sh diff --git a/home-panel/rootfs/etc/cont-init.d/discovery.sh b/home-panel/rootfs/etc/cont-init.d/discovery.sh deleted file mode 100644 index 29ac8e8..0000000 --- a/home-panel/rootfs/etc/cont-init.d/discovery.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/with-contenv bashio -# ============================================================================== -# Home Assistant Community Add-on: Home Panel -# Sends discovery information to Home Assistant. -# ============================================================================== -declare config - -config=$(\ - bashio::var.json \ - host "127.0.0.1" \ - port "^45158" \ -) - -if bashio::discovery "home_panel" "${config}" > /dev/null; then - bashio::log.info "Successfully send discovery information to Home Assistant." -else - bashio::log.error "Discovery message to Home Assistant failed!" -fi