Skip to content

Commit

Permalink
fix: devcontaienr post-install
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n committed Feb 19, 2024
1 parent 3172f45 commit 211371e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .devcontainer/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export PATH=~/.asdf/installs/poetry/$POETRY_VERSION/bin:$PATH
echo ""
echo "Disable SSL check in Curl"
echo "insecure" >> ${HOME}/.curlrc
sudo update-ca-certificates --fresh
echo ""
echo "Install environment"
make install
1 change: 1 addition & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/models/export_home_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def convert_kw(value):


def convert_kw_to_euro(value, price):
if type(price) == str:
if isinstance(price, str):
price = float(price.replace(",", "."))
return round(value / 1000 * price, 1)

Expand Down

0 comments on commit 211371e

Please sign in to comment.