Skip to content

Commit

Permalink
version: 2025.1.2b
Browse files Browse the repository at this point in the history
  • Loading branch information
Minims committed Jan 12, 2025
1 parent 864a0da commit bf3a8f8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion SomfyProtect2MQTT-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM $BUILD_FROM
ENV LANG C.UTF-8

# Install required packages
RUN apk add --no-cache py3-pip py3-opencv ffmpeg libjxl-tools libjxl
RUN apk add --no-cache py3-pip py3-opencv ffmpeg libjxl-tools libjxl yq
RUN pip3 install --no-cache-dir python-json2yaml==0.1.1

# Download source and untar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
bashio::log.info "Generating config.yaml from options.json"
echo '# Generated by homeassistant, do not edit!' > /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml.tmp
echo '# Edit configuration only at the Add-on configuration tab!' >> /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml.tmp
json2yaml /data/options.json >> /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml.tmp
yq eval -P /data/options.json > output.yaml
sed 's/ -/ -/' /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml.tmp > /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml
bashio::log.info "Configuration :"
bashio::log.info "$(cat /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml)"
Expand Down
6 changes: 5 additions & 1 deletion SomfyProtect2MQTT/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## 2025.1.0
## 2025.1.1

fix: json2yaml error

## 2025.1.1

visiophone: fix missing dependencies

Expand Down
3 changes: 1 addition & 2 deletions SomfyProtect2MQTT/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ ENV LANG C.UTF-8
ARG VERSION=2025.1.0

# Install required packages
RUN apk add --no-cache py3-pip py3-opencv ffmpeg libjxl-tools libjxl
RUN pip3 install --no-cache-dir python-json2yaml==0.1.1
RUN apk add --no-cache py3-pip py3-opencv ffmpeg libjxl-tools libjxl yq

Check failure on line 10 in SomfyProtect2MQTT/Dockerfile

View workflow job for this annotation

GitHub Actions / workflows / Hadolint

DL3018 warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`

# Download source and untar
WORKDIR /usr/bin
Expand Down
2 changes: 1 addition & 1 deletion SomfyProtect2MQTT/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

Check failure on line 1 in SomfyProtect2MQTT/config.yaml

View workflow job for this annotation

GitHub Actions / workflows / Lint Add-on

'boot' should be removed, it uses a default value

Check failure on line 1 in SomfyProtect2MQTT/config.yaml

View workflow job for this annotation

GitHub Actions / workflows / Lint Add-on

'startup' should be removed, it uses a default value

Check warning on line 1 in SomfyProtect2MQTT/config.yaml

View workflow job for this annotation

GitHub Actions / workflows / Lint Add-on

'map' contains the 'config' folder, which has been replaced by 'homeassistant_config'. See: https://developers.home-assistant.io/blog/2023/11/06/public-addon-config

Check failure on line 1 in SomfyProtect2MQTT/config.yaml

View workflow job for this annotation

GitHub Actions / workflows / Lint Add-on

Add-on version identifier must be 'dev'
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: SomfyProtect2MQTT
version: 2025.1.1
version: 2025.1.2a
slug: somfy-protect-2-mqtt
description: Publish Somfy Home Alarm as MQTT messages
url: https://github.com/Minims/homeassistant-addons/tree/main/SomfyProtect2MQTT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
bashio::log.info "Generating config.yaml from options.json"
echo '# Generated by homeassistant, do not edit!' > /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml.tmp
echo '# Edit configuration only at the Add-on configuration tab!' >> /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml.tmp
json2yaml /data/options.json >> /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml.tmp
yq eval -P /data/options.json > output.yaml
sed 's/ -/ -/' /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml.tmp > /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml
bashio::log.info "Configuration :"
bashio::log.info "$(cat /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/config/config.yaml)"
Expand Down

0 comments on commit bf3a8f8

Please sign in to comment.