diff --git a/build.md b/build.md index f1c1127..3a20884 100644 --- a/build.md +++ b/build.md @@ -20,13 +20,13 @@ cd ~/workspace/src/oekofen-api ``` ### Push git changes -- Neue Version in der setup.py eintragen 0.0.22 +- Neue Version in der setup.py eintragen 0.0.23 - Mit git changes pushen!! ### github Release erstellen - https://github.com/ckarrie/oekofen-api/releases/new -- Tag (create new): v0.0.22 -- Title: v0.0.22 +- Tag (create new): v0.0.23 +- Title: v0.0.23 - Button "Publish Release" ### Anpassen in setup.py @@ -34,7 +34,7 @@ cd ~/workspace/src/oekofen-api nano setup.py ``` ```python -VERSION = "0.0.22" +VERSION = "0.0.23" ``` @@ -60,7 +60,7 @@ twine upload dist/* Lokal updaten ``` -pip install oekofen-api==0.0.22 +pip install oekofen-api==0.0.23 ``` ## Update homeassistant-oekofen diff --git a/oekofen_api/__init__.py b/oekofen_api/__init__.py index eeeb0a9..51bf74f 100644 --- a/oekofen_api/__init__.py +++ b/oekofen_api/__init__.py @@ -353,7 +353,7 @@ def get_value(self, value=None): if value is not None: if self.factor is not None: # i.e. temperature or zs (zehntelsekunden, 0,1 seconds) - v = value * self.factor + v = float(value) * self.factor return float("{:.2f}".format(round(v, 2))) if self.format == const.OFF_ON_TEXT: # bool on/off diff --git a/setup.py b/setup.py index 66e2c43..49c40c4 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ with open("README.md", "r") as f: long_description = f.read() -VERSION = "0.0.22" +VERSION = "0.0.23" setup( name="oekofen_api",