diff --git a/custom_components/sws12500/manifest.json b/custom_components/sws12500/manifest.json index 39c46f5..9cba867 100644 --- a/custom_components/sws12500/manifest.json +++ b/custom_components/sws12500/manifest.json @@ -10,6 +10,6 @@ "issue_tracker": "https://github.com/schizza/SWS-12500-custom-component/issues", "requirements": [], "ssdp": [], - "version": "0.1.3", + "version": "0.1.3.4", "zeroconf": [] } diff --git a/custom_components/sws12500/utils.py b/custom_components/sws12500/utils.py index deee0b4..38b26ca 100644 --- a/custom_components/sws12500/utils.py +++ b/custom_components/sws12500/utils.py @@ -201,7 +201,7 @@ def chill_index(data: Any) -> UnitOfTemperature: temp = float(data[OUTSIDE_TEMP]) wind = float(data[WIND_SPEED]) - + return round( ( (35.7 + (0.6215 * temp)) @@ -209,4 +209,4 @@ def chill_index(data: Any) -> UnitOfTemperature: + (0.4275 * (temp * (wind**0.16))) ), 2, - ) + ) if temp < 50 and wind > 3 else temp