From c65773cbba988f80108885ab66c3b07bd5e1df10 Mon Sep 17 00:00:00 2001 From: Yonsm Date: Wed, 1 Nov 2023 23:12:51 +0800 Subject: [PATCH] fix --- extras/setup/Hass.sh | 2 +- extras/setup/HassFix.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/extras/setup/Hass.sh b/extras/setup/Hass.sh index f732908..433d230 100755 --- a/extras/setup/Hass.sh +++ b/extras/setup/Hass.sh @@ -47,7 +47,7 @@ systemctl enable homeassistant # Alias cat <<\EOF >> ~/.bashrc -alias l='ls --color=auto -lA' +alias ll='ls --color=auto -lA' alias mqttsub='mqttsub() { mosquitto_sub -v -t "$1#"; }; mqttsub' alias mqttre='systemctl stop mosquitto; sleep 2; rm -rf /var/lib/mosquitto/mosquitto.db; systemctl start mosquitto' alias hassre='echo .>~/.homeassistant/home-assistant.log; systemctl restart homeassistant' diff --git a/extras/setup/HassFix.sh b/extras/setup/HassFix.sh index bad6865..6197a72 100755 --- a/extras/setup/HassFix.sh +++ b/extras/setup/HassFix.sh @@ -1,6 +1,5 @@ #!/bin/sh -cd /usr/src/homeassistant/homeassistant -cd /usr/lib/python3.10/site-packages/homeassistant +cd /usr/src/homeassistant/homeassistant || cd /usr/lib/python3.10/site-packages/homeassistant sed -i 's/_LOGGER.warning(CUSTOM_WARNING/#LOGGER.warning(CUSTOM_WARNING/' loader.py sed -i 's/minutes=30/days=30/' auth/const.py