Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonsm committed Nov 1, 2023
1 parent 66892ec commit c65773c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extras/setup/Hass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 1 addition & 2 deletions extras/setup/HassFix.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c65773c

Please sign in to comment.