-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #315 from UI-Lovelace-Minimalist/dev
0.0.3
- Loading branch information
Showing
34 changed files
with
10,871 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,58 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
source /opt/container/helpers/common/paths.sh | ||
mkdir -p /config | ||
|
||
cd $SCRIPT_DIR/.. | ||
# Required to get automations to work | ||
echo "Creatin automations.yaml" | ||
touch /config/automations.yaml | ||
|
||
# source: /opt/container/helpers/commons/homeassistant/start.sh | ||
if test -d "custom_components"; then | ||
echo "Symlink the custom component directory" | ||
|
||
if test -d "custom_components"; then | ||
rm -R /config/custom_components | ||
fi | ||
|
||
ln -sf "$(workspacePath)custom_components/" /config/custom_components || echo "Could not copy the custom_component" exit 1 | ||
elif test -f "__init__.py"; then | ||
echo "Having the component in the root is currently not supported" | ||
fi | ||
|
||
# Install | ||
echo "Install home assistant" | ||
container install | ||
|
||
pip install -r $SCRIPT_DIR/../requirements_dev.txt | ||
echo "Installing Requirements_dev.txt" | ||
pip install -r $(workspacePath)requirements_dev.txt | ||
|
||
# Required to get automations to work | ||
touch /config/automations.yaml | ||
|
||
# pre-commit | ||
sudo apt update; apt install -y ruby | ||
echo "Install pre-commit dependencies" | ||
sudo apt update; apt install -y ruby vim | ||
|
||
echo "Install Pre-Commit in this repo" | ||
pre-commit install | ||
|
||
# Custom Cards & Modules | ||
echo "Installing NodeJS" | ||
curl -fsSL https://deb.nodesource.com/setup_16.x | bash - | ||
apt-get install -y nodejs | ||
|
||
|
||
cd /tmp | ||
# Install dependency modules | ||
## Browser mod | ||
echo "Installing Custom Component: Browser Mod" | ||
wget https://github.com/thomasloven/hass-browser_mod/archive/refs/tags/1.5.1.tar.gz -O browser_mod.tar.gz | ||
tar -xvf browser_mod.tar.gz | ||
rm -rf /config/custom_components/browser_mod | ||
mv hass-browser_mod*/custom_components/browser_mod /config/custom_components/browser_mod | ||
|
||
## virtual | ||
echo "Installing Custom Component: Virtual" | ||
wget https://github.com/twrecked/hass-virtual/archive/refs/tags/v0.7.5.tar.gz -O virtual.tar.gz | ||
tar -xvf virtual.tar.gz | ||
rm -rf /config/custom_components/virtual | ||
mv hass-virtual*/custom_components/virtual /config/custom_components/virtual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...components/ui_lovelace_minimalist/cards/simple-weather-card/simple-weather-card-bundle.js
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
custom_components/ui_lovelace_minimalist/cards/ulm-flexbox-card/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
Oops, something went wrong.