This commit is contained in:
Pascal Vizeli
2019-04-24 16:41:53 +02:00
parent 22a5402b2c
commit ce16aa1d92
3 changed files with 5 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
[![Build Status](https://dev.azure.com/home-assistant/Home%20Assistant/_apis/build/status/home-assistant.hassio-addons?branchName=master)](https://dev.azure.com/home-assistant/Home%20Assistant/_build/latest?definitionId=7&branchName=master)
# Hass.io Addons repository
https://home-assistant.io/hassio

View File

@@ -9,7 +9,7 @@ SHELL ["/bin/ash", "-o", "pipefail", "-c"]
##
# RPi support for HDMI-CEC on armhf/aarch64
RUN if [ "$BUILD_ARCH" == "armhf" ] || [ "$BUILD_ARCH" == "aarch64" ]; then \
RUN if [ "$BUILD_ARCH" = "armhf" ] || [ "$BUILD_ARCH" = "aarch64" ]; then \
apk add --no-cache raspberrypi-dev raspberrypi-libs; \
fi
@@ -19,7 +19,7 @@ ARG LIBCEC_VERSION
RUN apk add --no-cache eudev-libs p8-platform \
&& apk add --no-cache --virtual .build-dependencies \
build-base cmake eudev-dev git swig p8-platform-dev \
&& git clone --depth 1 -b libcec-${LIBCEC_VERSION} https://github.com/Pulse-Eight/libcec /usr/src/libcec \
&& git clone --depth 1 -b "libcec-${LIBCEC_VERSION}" https://github.com/Pulse-Eight/libcec /usr/src/libcec \
&& mkdir -p /usr/src/libcec/build \
&& cd /usr/src/libcec/build \
&& if [ "$BUILD_ARCH" != "armhf" ] && [ "$BUILD_ARCH" != "aarch64" ]; then \

View File

@@ -37,7 +37,7 @@ function _deconz_api() {
local api_port
api_port=$(bashio::addon.port 80)
while ! nc -z localhost ${api_port} </dev/null; do sleep 10; done
while ! nc -z localhost "${api_port}" < /dev/null; do sleep 10; done
if ! result="$(curl --silent --show-error --request POST -d '{"devicetype": "Home Assistant"}' "http://127.0.0.1:${api_port}/api")"; then
bashio::log.debug "${result}"