Extend hass.io cli with new feature for 0.61 (#178)

* Update hassio

* Update config.json
This commit is contained in:
Pascal Vizeli
2017-09-11 14:56:38 +02:00
committed by GitHub
parent 211f534ca3
commit 6e54f4becf
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "SSH server", "name": "SSH server",
"version": "2.7", "version": "2.8",
"slug": "ssh", "slug": "ssh",
"description": "Allows connections over SSH", "description": "Allows connections over SSH",
"url": "https://home-assistant.io/addons/ssh/", "url": "https://home-assistant.io/addons/ssh/",

View File

@@ -9,6 +9,8 @@ if [ "$1" == "help" ] || [ "$#" -lt 2 ]; then
HomeAssistant: HomeAssistant:
$ hassio homeassistant logs $ hassio homeassistant logs
$ hassio homeassistant restart $ hassio homeassistant restart
$ hassio homeassistant stop
$ hassio homeassistant start
$ hassio homeassistant update $ hassio homeassistant update
$ hassio homeassistant check $ hassio homeassistant check
@@ -67,7 +69,7 @@ function call_api() {
###### ######
# homeassistant functions # homeassistant functions
if [ "$1" == "homeassistant" ]; then if [ "$1" == "homeassistant" ]; then
hass_cmd=('logs' 'restart' 'update' 'check') hass_cmd=('logs' 'restart' 'update' 'check' 'start' 'stop')
if [[ ! ${hass_cmd[*]} =~ $2 ]]; then if [[ ! ${hass_cmd[*]} =~ $2 ]]; then
echo "No homeassistant command '$2' found!" echo "No homeassistant command '$2' found!"
exit 1 exit 1