From 5202bbb6af33c0ec191012b2dcbcfcc8e336be2e Mon Sep 17 00:00:00 2001 From: Jeef Date: Mon, 26 May 2025 07:05:00 -0600 Subject: [PATCH] Update Weatherflow wind direction icons to use Ranged Icon Translation (#140166) * feat: Wind direction icons * optimize funciton * float to int * no-verify * pre-change for icon translation changes --------- Co-authored-by: Jeff Stein <6491743+jeffor@users.noreply.github.com> --- .../components/weatherflow/icons.json | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/weatherflow/icons.json b/homeassistant/components/weatherflow/icons.json index 71a8b48415d..e0d2459b072 100644 --- a/homeassistant/components/weatherflow/icons.json +++ b/homeassistant/components/weatherflow/icons.json @@ -11,10 +11,32 @@ "default": "mdi:weather-rainy" }, "wind_direction": { - "default": "mdi:compass-outline" + "default": "mdi:compass-outline", + "range": { + "0": "mdi:arrow-up", + "22.5": "mdi:arrow-top-right", + "67.5": "mdi:arrow-right", + "112.5": "mdi:arrow-bottom-right", + "157.5": "mdi:arrow-down", + "202.5": "mdi:arrow-bottom-left", + "247.5": "mdi:arrow-left", + "292.5": "mdi:arrow-top-left", + "337.5": "mdi:arrow-up" + } }, "wind_direction_average": { - "default": "mdi:compass-outline" + "default": "mdi:compass-outline", + "range": { + "0": "mdi:arrow-up", + "22.5": "mdi:arrow-top-right", + "67.5": "mdi:arrow-right", + "112.5": "mdi:arrow-bottom-right", + "157.5": "mdi:arrow-down", + "202.5": "mdi:arrow-bottom-left", + "247.5": "mdi:arrow-left", + "292.5": "mdi:arrow-top-left", + "337.5": "mdi:arrow-up" + } } } }