Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanroelofs authored and pvizeli committed Oct 17, 2019
1 parent 5b1c227 commit 7f4696d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions rpc_shutdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion rpc_shutdown/config.json
Original file line number Diff line number Diff line change
@@ -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/",
Expand Down
2 changes: 1 addition & 1 deletion rpc_shutdown/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7f4696d

Please sign in to comment.