This commit is contained in:
Stefan
2019-10-17 17:09:04 +02:00
committed by Pascal Vizeli
parent 5b1c2274f8
commit 7f4696df8a
3 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
# Changelog
## 2.2
- Set delay to zero when it is empty (to not break existing configurations) (bugfix)
## 2.1
- Set delay to zero when it is empty (to not break existing configurations)

View File

@@ -1,6 +1,6 @@
{
"name": "RPC Shutdown",
"version": "2.1",
"version": "2.2",
"slug": "rpc_shutdown",
"description": "Simple way for remote windows shutdowns",
"url": "https://home-assistant.io/addons/rpc_shutdown/",

View File

@@ -21,7 +21,7 @@ while read -r input; do
fi
# Check if delay is not empty
if bashio::var.is_empty "${DELAY}"; then
if bashio::var.equals "$DELAY" "null"; then
DELAY="0"
fi