Skip to content

Commit c031e69

Browse files
committed
Added vclient error handling
1 parent ddc83e0 commit c031e69

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

vcontrold/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->
22

3+
## 1.8.1
4+
5+
- Added vclient error handling
6+
37
## 1.8.0
48

59
- Set vcontrol host&port as optional configuration

vcontrold/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
22
name: Vcontrol add-on
3-
version: "1.8.0"
3+
version: "1.8.1"
44
slug: vcontrold
55
description: Vcontrol add-on
66
url: "https://github.com/Alexandre-io/homeassistant-vcontrol"

vcontrold/rootfs/etc/services.d/vcontrold/run

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ do
4040
R='"$R'$i'"'
4141
fi
4242

43-
echo 'mosquitto_pub -h $MQTT_HOST -p $MQTT_PORT -u $MQTT_USER -P $MQTT_PASSWORD -t $MQTT_TOPIC/$C'$i' -m '$R'' >> /etc/vcontrold/2_mqtt.tmpl
44-
43+
echo 'if [ "x$E'$i'" = x ]; then' >> /etc/vcontrold/2_mqtt.tmpl
44+
echo ' mosquitto_pub -h $MQTT_HOST -p $MQTT_PORT -u $MQTT_USER -P $MQTT_PASSWORD -t $MQTT_TOPIC/$C'$i' -m '$R'' >> /etc/vcontrold/2_mqtt.tmpl
45+
echo 'fi' >> /etc/vcontrold/2_mqtt.tmpl
4546
done
4647

4748
# Set device ID

0 commit comments

Comments
 (0)