From 52f2bf9c7b19f9558574ab91e18b83a9048c63c7 Mon Sep 17 00:00:00 2001 From: Guy Khmelnitsky <3136012+GuyKh@users.noreply.github.com> Date: Wed, 23 Oct 2024 09:01:47 +0300 Subject: [PATCH] fix: Inverted wind directions --- custom_components/ims/const.py | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/custom_components/ims/const.py b/custom_components/ims/const.py index 14fd91d..4c6bafb 100644 --- a/custom_components/ims/const.py +++ b/custom_components/ims/const.py @@ -140,23 +140,23 @@ # Based on https://ims.gov.il/en/wind_directions WIND_DIRECTIONS = { 0: None, - 1: float(180), - 2: float(203), - 3: float(225), - 4: float(248), - 5: float(270), - 6: float(293), - 7: float(315), - 8: float(338), - 9: float(360), - 10: float(23), - 11: float(45), - 12: float(68), - 13: float(90), - 14: float(113), - 15: float(135), - 16: float(158), - 17: float(180), + 1: float(360), + 2: float(23), + 3: float(45), + 4: float(68), + 5: float(90), + 6: float(113), + 7: float(135), + 8: float(150), + 9: float(180), + 10: float(203), + 11: float(225), + 12: float(248), + 13: float(270), + 14: float(293), + 15: float(315), + 16: float(338), + 17: float(0), } # Based on https://ims.gov.il/en/weather_codes @@ -217,4 +217,4 @@ "1570": "mdi:weather-dust", "1580": "mdi:weather-sunny-alert", "1590": "mdi:snowflake-alert", -} \ No newline at end of file +}