Skip to content

Commit

Permalink
Start HA CLI interactively (#138)
Browse files Browse the repository at this point in the history
Use -o (--open-tty) to start the child with stdin as /dev/tty to allow
interactive mode. This is required by some commands like the new device
wipe command added with home-assistant/cli#464.
  • Loading branch information
agners authored Mar 11, 2024
1 parent ab48260 commit d222ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/usr/bin/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ while true; do
COMMAND=$(echo "$COMMAND" | cut -b 3-)
fi

echo "$COMMAND" | xargs ha
echo "$COMMAND" | xargs -o ha
echo ""
done

0 comments on commit d222ddd

Please sign in to comment.