Skip to content

Commit

Permalink
Adjust BLACKLIST & WHITELIST
Browse files Browse the repository at this point in the history
Adjust how BLACKLIST & WHITELIST are inserted
  • Loading branch information
mihsu81 committed Aug 18, 2024
1 parent 1b0dc79 commit 18b9fca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion theengsgateway/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG BUILD_FROM
FROM $BUILD_FROM
LABEL io.hass.version="1.11.2" io.hass.type="addon" io.hass.arch="armv7|armhf|aarch64|i386|amd64"
LABEL io.hass.version="1.11.3" io.hass.type="addon" io.hass.arch="armv7|armhf|aarch64|i386|amd64"
RUN apt-get update && apt-get upgrade -y && \
apt-get install --no-install-recommends -y build-essential bluez python3-pip python3-dev && \
pip3 install --extra-index-url=https://www.piwheels.org/simple TheengsGateway==1.5.0
Expand Down
2 changes: 1 addition & 1 deletion theengsgateway/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TheengsGateway",
"version": "1.11.2",
"version": "1.11.3",
"slug": "theengsgw",
"description": "TheengsGateway HA Add-on",
"url": "https://github.com/mihsu81/addon-theengsgw",
Expand Down
10 changes: 8 additions & 2 deletions theengsgateway/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ bashio::log.info "WHITELIST: ${WHITELIST}"
echo " \"adapter\": \"${ADAPTER}\"",
echo " \"time_sync\": ${TIME_SYNC}",
echo " \"time_format\": \"${TIME_FORMAT}\"",
echo " \"blacklist\": \"${BLACKLIST}\"",
echo " \"whitelist\": \"${WHITELIST}\"",
echo " \"tls_insecure\": ${TLS_INSECURE}",
echo " \"enable_tls\": ${ENABLE_TLS}",
echo " \"enable_websocket\": ${ENABLE_WEBSOCKET}"
Expand All @@ -97,6 +95,14 @@ bashio::log.info "WHITELIST: ${WHITELIST}"
if [ -n "${BINDKEYS}" ]; then
echo ", \"bindkeys\": ${BINDKEYS}"
fi
# Check if BLACKLIST is not empty, then include it
if [ -n "${BLACKLIST}" ]; then
echo ", \"blacklist\": ${BLACKLIST}"
fi
# Check if WHITELIST is not empty, then include it
if [ -n "${WHITELIST}" ]; then
echo ", \"whitelist\": ${WHITELIST}"
fi
echo "}"
} > "${CONFIG}"

Expand Down

0 comments on commit 18b9fca

Please sign in to comment.